mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
Closes issue #23009.
This commit is contained in:
commit
7f98d3ecb8
2 changed files with 11 additions and 1 deletions
|
@ -316,6 +316,11 @@ class BaseSelectorTestCase(unittest.TestCase):
|
|||
|
||||
self.assertEqual(bufs, [MSG] * NUM_SOCKETS)
|
||||
|
||||
def test_empty_select(self):
|
||||
s = self.SELECTOR()
|
||||
self.addCleanup(s.close)
|
||||
self.assertEqual(s.select(timeout=0), [])
|
||||
|
||||
def test_timeout(self):
|
||||
s = self.SELECTOR()
|
||||
self.addCleanup(s.close)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue