mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #19589: Use specific asserts in asyncio tests.
This commit is contained in:
parent
f38f7f3c7b
commit
e048addedc
3 changed files with 12 additions and 10 deletions
|
@ -779,7 +779,7 @@ class TaskTests(unittest.TestCase):
|
|||
self.assertEqual(len(res), 2, res)
|
||||
self.assertEqual(res[0], (1, 'a'))
|
||||
self.assertEqual(res[1][0], 2)
|
||||
self.assertTrue(isinstance(res[1][1], futures.TimeoutError))
|
||||
self.assertIsInstance(res[1][1], futures.TimeoutError)
|
||||
self.assertAlmostEqual(0.12, loop.time())
|
||||
|
||||
# move forward to close generator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue