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

Commit

Permalink
Capture stream write error
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 b97663b commit 9fc1a1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def test_stream_write(self):
self._storage.stream_write(filename, io)
assert self._storage.exists(filename)
# Test that EOFed io string throws IOError on lib/storage/s3
self._storage.stream_write(filename, io)
try:
self._storage.stream_write(filename, io)
except IOError:
pass
# Cleanup
io.close()
self._storage.remove(filename)
Expand Down

0 comments on commit 9fc1a1c

Please sign in to comment.