From: Yury Selivanov Date: Fri, 3 Jul 2015 05:16:04 +0000 (-0400) Subject: Add a rudimentary test for StopAsyncIteration in test_exceptions. X-Git-Tag: v3.5.0b3~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccc897f839a4f1140b760169c6cb0840ec6a182a;p=python Add a rudimentary test for StopAsyncIteration in test_exceptions. --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 3bfb582cb6..32a66ea9ba 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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