summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.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_unix_events.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_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index ea1c08c..af86be1 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -67,7 +67,7 @@ class SelectorEventLoopTests(unittest.TestCase):
cb = lambda: True
self.loop.add_signal_handler(signal.SIGHUP, cb)
h = self.loop._signal_handlers.get(signal.SIGHUP)
- self.assertTrue(isinstance(h, events.Handle))
+ self.assertIsInstance(h, events.Handle)
self.assertEqual(h._callback, cb)
@unittest.mock.patch('asyncio.unix_events.signal')