Merge 3.4

This commit is contained in:
Victor Stinner 2015-01-22 09:09:24 +01:00
commit f07717c105
1 changed files with 2 additions and 0 deletions

View File

@ -323,6 +323,8 @@ class BaseSelectorTestCase(unittest.TestCase):
@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), [])