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

cloudmarker / cloudmarker / 877
84%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2019 10:44AM UTC
Jobs 3
Files 43
Run time 12s
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

pending completion
877

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.

428 of 481 branches covered (88.98%)

Branch coverage included in aggregate %.

2039 of 2254 relevant lines covered (90.46%)

2.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 877.1 03 Jun 2019 10:44AM UTC 0
90.38
Travis Job 877.1
2 877.2 03 Jun 2019 10:44AM UTC 0
90.38
Travis Job 877.2
3 877.3 03 Jun 2019 10:44AM UTC 0
90.38
Travis Job 877.3
Source Files on build 877
  • 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 Repo
  • Build #877
  • 9b7fbfa0 on github
  • Prev Build on master (#874)
  • Next Build on master (#879)
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

© 2025 Coveralls, Inc