Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc897f

Browse files
committed
Add a rudimentary test for StopAsyncIteration in test_exceptions.
1 parent f488fb4 commit ccc897f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def testRaising(self):
118118
try: x = 1/0
119119
except Exception as e: pass
120120

121+
self.raise_catch(StopAsyncIteration, "StopAsyncIteration")
122+
121123
def testSyntaxErrorMessage(self):
122124
# make sure the right exception message is raised for each of
123125
# these code fragments

0 commit comments

Comments
 (0)