summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-22 08:07:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-22 08:07:36 (GMT)
commit14d45c06eb0df15c548a99cc0f38c3060aa64579 (patch)
treea8e6ac46fd3d5027e41f3c8e7c011dd939caa085 /Lib
parent1ca9392c7083972c1953c02e6f2cca54934ce0a6 (diff)
downloadcpython-14d45c06eb0df15c548a99cc0f38c3060aa64579.zip
cpython-14d45c06eb0df15c548a99cc0f38c3060aa64579.tar.gz
cpython-14d45c06eb0df15c548a99cc0f38c3060aa64579.tar.bz2
Issue #23009: Skip test_selectors.test_empty_select() on Windows
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_selectors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py
index dd30d44..8eddd17 100644
--- a/Lib/test/test_selectors.py
+++ b/Lib/test/test_selectors.py
@@ -322,7 +322,11 @@ class BaseSelectorTestCase(unittest.TestCase):
self.assertEqual(bufs, [MSG] * NUM_SOCKETS)
+ @unittest.skipIf(sys.platform == 'win32',
+ 'select.select() cannot be used with empty fd sets')
def test_empty_select(self):
+ # Issue #23009: Make sure EpollSelector.select() works when no FD is
+ # registered.
s = self.SELECTOR()
self.addCleanup(s.close)
self.assertEqual(s.select(timeout=0), [])