summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-05 17:16:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-05 17:16:31 (GMT)
commit98020812e6f82d22308f4fc1169fe066254d3a72 (patch)
treeb0902bd73e8c029e488e9e2ac67e354f0ddda6ad /Lib/test
parent4847f3194d3a8a58913d94b67f9de09ac765a8d9 (diff)
parent2f40ed4b94ad48cca01a96620da8c3eb15493539 (diff)
downloadcpython-98020812e6f82d22308f4fc1169fe066254d3a72.zip
cpython-98020812e6f82d22308f4fc1169fe066254d3a72.tar.gz
cpython-98020812e6f82d22308f4fc1169fe066254d3a72.tar.bz2
merge 3.5 (closes #27811)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_coroutines.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index d0cefb0..79cbec9 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1565,6 +1565,14 @@ class CoroutineTest(unittest.TestCase):
finally:
aw.close()
+ def test_fatal_coro_warning(self):
+ # Issue 27811
+ async def func(): pass
+ with warnings.catch_warnings():
+ warnings.filterwarnings("error")
+ func()
+ support.gc_collect()
+
class CoroAsyncIOCompatTest(unittest.TestCase):