changeset: 94236:d3a27a27e008 branch: 3.4 parent: 94234:d3804307cce4 user: Victor Stinner date: Thu Jan 22 09:07:36 2015 +0100 files: Lib/test/test_selectors.py description: Issue #23009: Skip test_selectors.test_empty_select() on Windows diff -r d3804307cce4 -r d3a27a27e008 Lib/test/test_selectors.py --- a/Lib/test/test_selectors.py Thu Jan 22 00:17:54 2015 +0100 +++ b/Lib/test/test_selectors.py Thu Jan 22 09:07:36 2015 +0100 @@ -322,7 +322,11 @@ 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), [])