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

Commit 9fc1a1c

Browse files
author
Mangled Deutz
committed
Capture stream write error
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent b97663b commit 9fc1a1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_s3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ def test_stream_write(self):
6363
self._storage.stream_write(filename, io)
6464
assert self._storage.exists(filename)
6565
# Test that EOFed io string throws IOError on lib/storage/s3
66-
self._storage.stream_write(filename, io)
66+
try:
67+
self._storage.stream_write(filename, io)
68+
except IOError:
69+
pass
6770
# Cleanup
6871
io.close()
6972
self._storage.remove(filename)

0 commit comments

Comments
 (0)