Add a rudimentary test for StopAsyncIteration in test_exceptions.

This commit is contained in:
Yury Selivanov 2015-07-03 01:16:04 -04:00
parent f488fb422a
commit ccc897f839
1 changed files with 2 additions and 0 deletions

View 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