diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-07 16:00:57 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-07 16:00:57 (GMT) |
commit | c75abff53375bbd9f1536de4069854cea4933c42 (patch) | |
tree | 300279691ee414a10fde864a3613e2f69a5fd0ce /Lib | |
parent | e2ffe29738edc4a643d7f14842c10eeeee273bec (diff) | |
parent | 48c88307d87ae0704885b9b5c692ded861077a71 (diff) | |
download | cpython-c75abff53375bbd9f1536de4069854cea4933c42.zip cpython-c75abff53375bbd9f1536de4069854cea4933c42.tar.gz cpython-c75abff53375bbd9f1536de4069854cea4933c42.tar.bz2 |
merge 3.5 (closes #27968)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_coroutines.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 79cbec9..e52654c 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -1568,10 +1568,11 @@ class CoroutineTest(unittest.TestCase): def test_fatal_coro_warning(self): # Issue 27811 async def func(): pass - with warnings.catch_warnings(): + with warnings.catch_warnings(), support.captured_stderr() as stderr: warnings.filterwarnings("error") func() support.gc_collect() + self.assertIn("was never awaited", stderr.getvalue()) class CoroAsyncIOCompatTest(unittest.TestCase): |