summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-03 05:16:04 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-07-03 05:16:04 (GMT)
commitccc897f839a4f1140b760169c6cb0840ec6a182a (patch)
tree074707202b92e3b1c3e1c8643860885bb0dc96d6 /Lib/test/test_exceptions.py
parentf488fb422a641aa7c38eb63c09f459e4baff7bc4 (diff)
downloadcpython-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.py2
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