diff options
Diffstat (limited to 'tests/test_proactor_events.py')
-rw-r--r-- | tests/test_proactor_events.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_proactor_events.py b/tests/test_proactor_events.py index 33a8a67..fcd9ab1 100644 --- a/tests/test_proactor_events.py +++ b/tests/test_proactor_events.py @@ -499,8 +499,12 @@ class BaseProactorEventLoopTests(test_utils.TestCase): self.proactor.accept.assert_called_with(self.sock) def test_socketpair(self): + class EventLoop(BaseProactorEventLoop): + # override the destructor to not log a ResourceWarning + def __del__(self): + pass self.assertRaises( - NotImplementedError, BaseProactorEventLoop, self.proactor) + NotImplementedError, EventLoop, self.proactor) def test_make_socket_transport(self): tr = self.loop._make_socket_transport(self.sock, asyncio.Protocol()) |