From: Victor Stinner Date: Thu, 22 Jan 2015 08:07:36 +0000 (+0100) Subject: Issue #23009: Skip test_selectors.test_empty_select() on Windows X-Git-Tag: v3.4.3rc1~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14d45c06eb0df15c548a99cc0f38c3060aa64579;p=thirdparty%2FPython%2Fcpython.git Issue #23009: Skip test_selectors.test_empty_select() on Windows --- diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py index dd30d441e6e9..8eddd178fe81 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), [])