merge 3.5 (closes #27968)
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 @@
     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):