Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c75abff

Browse files
committed
merge 3.5 (closes #27968)
2 parents e2ffe29 + 48c8830 commit c75abff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_coroutines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,10 +1568,11 @@ async def func(): pass
15681568
def test_fatal_coro_warning(self):
15691569
# Issue 27811
15701570
async def func(): pass
1571-
with warnings.catch_warnings():
1571+
with warnings.catch_warnings(), support.captured_stderr() as stderr:
15721572
warnings.filterwarnings("error")
15731573
func()
15741574
support.gc_collect()
1575+
self.assertIn("was never awaited", stderr.getvalue())
15751576

15761577

15771578
class CoroAsyncIOCompatTest(unittest.TestCase):

0 commit comments

Comments
 (0)