mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661)
This commit is contained in:
parent
11c4eaa993
commit
9012a0fb4c
14 changed files with 192 additions and 206 deletions
|
@ -560,7 +560,7 @@ class StreamTests(test_utils.TestCase):
|
|||
t1 = asyncio.Task(stream.readline(), loop=self.loop)
|
||||
t2 = asyncio.Task(set_err(), loop=self.loop)
|
||||
|
||||
self.loop.run_until_complete(asyncio.wait([t1, t2], loop=self.loop))
|
||||
self.loop.run_until_complete(asyncio.wait([t1, t2]))
|
||||
|
||||
self.assertRaises(ValueError, t1.result)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue