mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Add a rudimentary test for StopAsyncIteration in test_exceptions.
This commit is contained in:
parent
f488fb422a
commit
ccc897f839
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ class ExceptionTests(unittest.TestCase):
|
|||
try: x = 1/0
|
||||
except Exception as e: pass
|
||||
|
||||
self.raise_catch(StopAsyncIteration, "StopAsyncIteration")
|
||||
|
||||
def testSyntaxErrorMessage(self):
|
||||
# make sure the right exception message is raised for each of
|
||||
# these code fragments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue