Kaydet (Commit) ccc897f8 authored tarafından Yury Selivanov's avatar Yury Selivanov

Add a rudimentary test for StopAsyncIteration in test_exceptions.

üst f488fb42
...@@ -118,6 +118,8 @@ class ExceptionTests(unittest.TestCase): ...@@ -118,6 +118,8 @@ class ExceptionTests(unittest.TestCase):
try: x = 1/0 try: x = 1/0
except Exception as e: pass except Exception as e: pass
self.raise_catch(StopAsyncIteration, "StopAsyncIteration")
def testSyntaxErrorMessage(self): def testSyntaxErrorMessage(self):
# make sure the right exception message is raised for each of # make sure the right exception message is raised for each of
# these code fragments # these code fragments
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment