From 7acf410d211f15d48099441f6bd5dbed03eaa25f Mon Sep 17 00:00:00 2001 From: itay azolay Date: Sun, 1 Dec 2019 22:31:09 +0200 Subject: [PATCH] fix tests --- Lib/test/test_asyncio/test_selector_events.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 43a41e8fc32..f8f35686462 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -559,12 +559,16 @@ class SelectorSocketTransportTests(test_utils.TestCase): tr.pause_reading() test_utils.run_briefly(self.loop) self.assertFalse(tr.is_reading()) - self.loop.assert_no_reader(7, tr._read_ready) + self.loop.assert_no_reader(7) tr.resume_reading() self.assertTrue(tr.is_reading()) self.loop.assert_reader(7, tr._read_ready) + tr.close() + self.assertFalse(tr.is_reading()) + self.loop.assert_no_reader(7) + def test_read_eof_received_error(self): transport = self.socket_transport()