Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30268b5 commit cb72febCopy full SHA for cb72feb
1 file changed
Lib/test/test_unittest/test_case.py
@@ -347,7 +347,10 @@ async def test1(self):
347
return 1
348
349
with self.assertWarns(DeprecationWarning) as w:
350
+ warnings.filterwarnings('ignore',
351
+ 'coroutine .* was never awaited', RuntimeWarning)
352
Foo('test1').run()
353
+ support.gc_collect()
354
self.assertIn('It is deprecated to return a value that is not None', str(w.warning))
355
self.assertIn('test1', str(w.warning))
356
self.assertEqual(w.filename, __file__)
0 commit comments