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 a1bb354 commit 2131292Copy full SHA for 2131292
src/tests/test_exceptions.py
@@ -362,6 +362,11 @@ def test_iteration_exception():
362
363
assert exc == exception
364
365
+ # after exception is thrown iterator is no longer valid
366
+ with pytest.raises(StopIteration):
367
+ next(val)
368
+
369
370
def test_iteration_innerexception():
371
from Python.Test import ExceptionTest
372
from System import OverflowException
@@ -377,3 +382,7 @@ def test_iteration_innerexception():
377
382
exc = cm.value
378
383
379
384
assert exc == exception.InnerException
385
386
387
388
0 commit comments