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

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