summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-14 21:10:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-14 21:10:51 (GMT)
commite048addedc4c54f3904069f154b3632da65d820b (patch)
treec73ff3b73c513f7c977aa866ab350e1708b5bd80 /Lib/test/test_asyncio/test_tasks.py
parentf38f7f3c7b8b018428a427c33ada455ec09683ca (diff)
downloadcpython-e048addedc4c54f3904069f154b3632da65d820b.zip
cpython-e048addedc4c54f3904069f154b3632da65d820b.tar.gz
cpython-e048addedc4c54f3904069f154b3632da65d820b.tar.bz2
Issue #19589: Use specific asserts in asyncio tests.
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 57fb053..8f0d081 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -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