diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:20:38 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:20:38 (GMT) |
commit | 7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2 (patch) | |
tree | 532e8aebf2f66b89853e8e3a2dad957d563ee355 /Lib/test/test_asyncio/test_base_events.py | |
parent | 7bf36dace8c3d3714dfe5175891612450cb82ce5 (diff) | |
download | cpython-7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2.zip cpython-7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2.tar.gz cpython-7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2.tar.bz2 |
Issue #27040: Add loop.get_exception_handler method
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index a74ac89..ef93dc0 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -658,8 +658,10 @@ class BaseEventLoopTests(test_utils.TestCase): self.loop.set_debug(True) self.loop._process_events = mock.Mock() + self.assertIsNone(self.loop.get_exception_handler()) mock_handler = mock.Mock() self.loop.set_exception_handler(mock_handler) + self.assertIs(self.loop.get_exception_handler(), mock_handler) handle = run_loop() mock_handler.assert_called_with(self.loop, { 'exception': MOCK_ANY, |