summaryrefslogtreecommitdiff
path: root/Lib/asyncio/test_utils.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-02-02 18:36:59 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-02-02 18:36:59 +0100
commit29ae7633e0e41d65e188c522248dcb620b055efc (patch)
tree5abb7756647b60de3f347437d87c77ba0b8d3e69 /Lib/asyncio/test_utils.py
parentc658d85487142099c1abe8e916c9864f7fc7b7a4 (diff)
parent5d44c08f1c18583d568283170454bab0c11f8257 (diff)
downloadcpython-git-29ae7633e0e41d65e188c522248dcb620b055efc.tar.gz
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/asyncio/test_utils.py')
-rw-r--r--Lib/asyncio/test_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py
index 6eedc583db..8cee95b84f 100644
--- a/Lib/asyncio/test_utils.py
+++ b/Lib/asyncio/test_utils.py
@@ -416,6 +416,10 @@ class TestCase(unittest.TestCase):
def tearDown(self):
events.set_event_loop(None)
+ # Detect CPython bug #23353: ensure that yield/yield-from is not used
+ # in an except block of a generator
+ self.assertEqual(sys.exc_info(), (None, None, None))
+
@contextlib.contextmanager
def disable_logger():