mirror of https://github.com/python/cpython
merge 3.5 (closes #27968)
This commit is contained in:
commit
c75abff533
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue