mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue