We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a58f66 commit 7bb6e1cCopy full SHA for 7bb6e1c
1 file changed
Lib/test/test_io.py
@@ -4714,7 +4714,8 @@ def _read():
4714
# handlers, which in this case will invoke alarm_interrupt().
4715
signal.alarm(1)
4716
try:
4717
- self.assertRaises(ZeroDivisionError, wio.write, large_data)
+ with self.assertRaises(ZeroDivisionError):
4718
+ wio.write(large_data)
4719
finally:
4720
signal.alarm(0)
4721
t.join()
0 commit comments