diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 05:16:04 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 05:16:04 (GMT) |
commit | ccc897f839a4f1140b760169c6cb0840ec6a182a (patch) | |
tree | 074707202b92e3b1c3e1c8643860885bb0dc96d6 /Lib/test/test_exceptions.py | |
parent | f488fb422a641aa7c38eb63c09f459e4baff7bc4 (diff) | |
download | cpython-ccc897f839a4f1140b760169c6cb0840ec6a182a.zip cpython-ccc897f839a4f1140b760169c6cb0840ec6a182a.tar.gz cpython-ccc897f839a4f1140b760169c6cb0840ec6a182a.tar.bz2 |
Add a rudimentary test for StopAsyncIteration in test_exceptions.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 3bfb582..32a66ea 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 |