]> granicus.if.org Git - python/commitdiff
Add a rudimentary test for StopAsyncIteration in test_exceptions.
authorYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 05:16:04 +0000 (01:16 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 05:16:04 +0000 (01:16 -0400)
Lib/test/test_exceptions.py

index 3bfb582cb6947e269e7d6d796e54a915aba6b3f9..32a66ea9ba84d9db96541274e8ca388edd0c8a2c 100644 (file)
@@ -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