Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14d45c0

Browse files
committed
Issue #23009: Skip test_selectors.test_empty_select() on Windows
1 parent 1ca9392 commit 14d45c0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_selectors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ def test_selector(self):
322322

323323
self.assertEqual(bufs, [MSG] * NUM_SOCKETS)
324324

325+
@unittest.skipIf(sys.platform == 'win32',
326+
'select.select() cannot be used with empty fd sets')
325327
def test_empty_select(self):
328+
# Issue #23009: Make sure EpollSelector.select() works when no FD is
329+
# registered.
326330
s = self.SELECTOR()
327331
self.addCleanup(s.close)
328332
self.assertEqual(s.select(timeout=0), [])

0 commit comments

Comments
 (0)