[Python-checkins] cpython (3.5): Add a rudimentary test for StopAsyncIteration in test_exceptions.
yury.selivanov
python-checkins at python.org
Fri Jul 3 07:16:26 CEST 2015
https://hg.python.org/cpython/rev/7edbbcbf5936
changeset: 96774:7edbbcbf5936
branch: 3.5
parent: 96772:a795cf73ce6f
user: Yury Selivanov <yselivanov at sprymix.com>
date: Fri Jul 03 01:16:04 2015 -0400
summary:
Add a rudimentary test for StopAsyncIteration in test_exceptions.
files:
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
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -118,6 +118,8 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list