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

Commit ba9fb0c

Browse files
author
Mangled Deutz
committed
Fix test
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent 9fc1a1c commit ba9fb0c

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
@@ -60,7 +60,10 @@ def test_stream_write(self):
6060
content = self.gen_random_string(8 * 1024 * 1024)
6161
io = StringIOWithError(content)
6262
assert not self._storage.exists(filename)
63-
self._storage.stream_write(filename, io)
63+
try:
64+
self._storage.stream_write(filename, io)
65+
except IOError:
66+
pass
6467
assert self._storage.exists(filename)
6568
# Test that EOFed io string throws IOError on lib/storage/s3
6669
try:

0 commit comments

Comments
 (0)