From 147924d0a433968c639f75630009eff8a872a4d3 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 17 Jul 2020 15:46:04 -0700 Subject: Use the selectors module. Previously, there was code to either use select.select or select.poll, depending on OS. This changes it to use the selectors module, using either SelectSelector or PollSelector, but sharing code otherwise. --- tests/test_query.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests/test_query.py') diff --git a/tests/test_query.py b/tests/test_query.py index 498128d..a13833e 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -540,17 +540,3 @@ class LowLevelWaitTests(unittest.TestCase): finally: l.close() r.close() - - def test_select_for(self): - # we test this explicitly in case _wait_for didn't test it (i.e. - # if the default polling backing is _poll_for) - try: - (l, r) = socket.socketpair() - # simple timeout - self.assertFalse(dns.query._select_for(l, False, False, False, - 0.05)) - # writable no timeout - self.assertTrue(dns.query._select_for(l, False, True, False, None)) - finally: - l.close() - r.close() -- cgit v1.2.1