fix stream implementation

This commit is contained in:
Roman Zeyde
2014-08-07 17:04:27 +03:00
parent 2030b0942f
commit 0b91ef76c5
2 changed files with 22 additions and 18 deletions

View File

@@ -31,5 +31,5 @@ def test_read():
try:
for buf in f:
pass
except IOError as e:
assert str(e) == 'timeout'
except stream.Timeout as e:
assert e.args == (f.timeout,)