Skip to content

Commit

Permalink
Writing portable tests is tricky :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 11, 2015
1 parent 1c0ba04 commit a6163e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pip_accel/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ def test_s3_backend(self):
wipe_directory(fakes3.root)
if WINDOWS:
fakes3.start()
os.chmod(fakes3.root, 0o555)
# Mark the directory as read only.
os.chmod(fakes3.root, stat.S_IRUSR)
if i == 4:
logger.warning("Killing FakeS3 process to force S3 cache backend failure ..")
fakes3.kill()
Expand Down

0 comments on commit a6163e7

Please sign in to comment.