diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-09 23:45:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-09 23:45:44 (GMT) |
commit | dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09 (patch) | |
tree | 0c8878ba52ef21fb7058545b9ca62d1838cf9ccd /Lib/test/test_asyncio/test_events.py | |
parent | 136fea253e438a0db6a1d24d3c23f02fcb64b7c4 (diff) | |
download | cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.zip cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.tar.gz cpython-dc62b7e261ab88b4ab967ac2ae307eddbfa0ae09.tar.bz2 |
asyncio: Tulip issue 112: Inline make_handle() into Handle constructor
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index c2988c0..4fb4b25 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -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): |