mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
asyncio: Tulip issue 112: Inline make_handle() into Handle constructor
This commit is contained in:
parent
136fea253e
commit
dc62b7e261
6 changed files with 9 additions and 14 deletions
|
|
@ -1660,12 +1660,12 @@ class HandleTests(unittest.TestCase):
|
|||
'<function HandleTests.test_handle.<locals>.callback'))
|
||||
self.assertTrue(r.endswith('())<cancelled>'), r)
|
||||
|
||||
def test_make_handle(self):
|
||||
def test_handle(self):
|
||||
def callback(*args):
|
||||
return args
|
||||
h1 = asyncio.Handle(callback, ())
|
||||
self.assertRaises(
|
||||
AssertionError, asyncio.events.make_handle, h1, ())
|
||||
AssertionError, asyncio.Handle, h1, ())
|
||||
|
||||
@unittest.mock.patch('asyncio.events.logger')
|
||||
def test_callback_with_exception(self, log):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue