• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cloudmarker / cloudmarker / 877 / 3
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2019 10:44AM UTC
Files 43
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jun 2019 10:00AM UTC coverage: 90.377%. Remained the same
877.3

push

travis-ci-com

jaibhageria
Replace os.rename() with os.replace() in FileStore

The cross-platform behavior of `os.rename()` is inconsistent.
While trying to setup a development environment on Windows,
`os.rename()` caused errors to be thrown as seen below.

    File "c:\users\...", line 89, in done
        os.rename(tmp_file_path, json_file_path)
    FileExistsError: [WinError 183] Cannot create a file when that file
    already exists: '/tmp/cloudmarker\\mymockaudit_mymockcloud.tmp' ->
    '/tmp/cloudmarker\\mymockaudit_mymockcloud.json'
    mymockaudit_filestore: Failed; done() error: FileExistsError:
    [WinError 183] Cannot create a file when that file already exists:
    '/tmp/cloudmarker\\no_worker.tmp' ->
    '/tmp/cloudmarker\\no_worker.json'

Changing `os.rename()` to `os.replace()` has fixed the issue, as
`os.replace()` always guarantees to replace the file regardless
of the platform.

478 of 531 branches covered (90.02%)

Branch coverage included in aggregate %.

2039 of 2254 relevant lines covered (90.46%)

0.9 hits per line

Source Files on job 877.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 713
  • Travis Job 877.3
  • 9b7fbfa0 on github
  • Prev Job for on master (#874.2)
  • Next Job for on master (#879.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc