Skip to content

Commit 7bb6e1c

Browse files
committed
tweak test_io
1 parent 5a58f66 commit 7bb6e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4714,7 +4714,8 @@ def _read():
47144714
# handlers, which in this case will invoke alarm_interrupt().
47154715
signal.alarm(1)
47164716
try:
4717-
self.assertRaises(ZeroDivisionError, wio.write, large_data)
4717+
with self.assertRaises(ZeroDivisionError):
4718+
wio.write(large_data)
47184719
finally:
47194720
signal.alarm(0)
47204721
t.join()

0 commit comments

Comments
 (0)