mirror of
https://github.com/romanz/amodem.git
synced 2026-03-23 02:39:26 +08:00
stream: use IOError when file is over.
This commit is contained in:
@@ -31,5 +31,5 @@ def test_read():
|
||||
try:
|
||||
for buf in f:
|
||||
pass
|
||||
except stream.Timeout as e:
|
||||
assert e.args == (f.timeout,)
|
||||
except IOError as e:
|
||||
assert e.args == ('timeout',)
|
||||
|
||||
Reference in New Issue
Block a user