Issue #19589: Use specific asserts in asyncio tests.

This commit is contained in:
Serhiy Storchaka 2013-11-14 23:10:51 +02:00
parent f38f7f3c7b
commit e048addedc
3 changed files with 12 additions and 10 deletions

View file

@ -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