Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <olivier@webitup.fr> (github: dmp42)
  • Loading branch information
Mangled Deutz committed May 26, 2014
1 parent 9fc1a1c commit ba9fb0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_s3.py
Expand Up @@ -60,7 +60,10 @@ def test_stream_write(self):
content = self.gen_random_string(8 * 1024 * 1024)
io = StringIOWithError(content)
assert not self._storage.exists(filename)
self._storage.stream_write(filename, io)
try:
self._storage.stream_write(filename, io)
except IOError:
pass
assert self._storage.exists(filename)
# Test that EOFed io string throws IOError on lib/storage/s3
try:
Expand Down

0 comments on commit ba9fb0c

Please sign in to comment.