diff options
| author | Yury Selivanov <yselivanov@sprymix.com> | 2014-12-08 17:21:58 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-12-08 17:21:58 (GMT) |
| commit | d60ef4aa9daff89af06117e7e2ae83adfb8c9dce (patch) | |
| tree | da8f95c1b944a38a48eecbbc78119b4a659de992 /Lib/test/test_selectors.py | |
| parent | e3b743cd3ee4e5adf1598dbef002779eb5c12989 (diff) | |
| download | cpython-d60ef4aa9daff89af06117e7e2ae83adfb8c9dce.zip cpython-d60ef4aa9daff89af06117e7e2ae83adfb8c9dce.tar.gz cpython-d60ef4aa9daff89af06117e7e2ae83adfb8c9dce.tar.bz2 | |
selectors: Make sure EpollSelecrtor.select() works when no FD is registered.
Closes issue #23009.
Diffstat (limited to 'Lib/test/test_selectors.py')
| -rw-r--r-- | Lib/test/test_selectors.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_selectors.py b/Lib/test/test_selectors.py index 46026be..c08a3c4 100644 --- a/Lib/test/test_selectors.py +++ b/Lib/test/test_selectors.py @@ -319,6 +319,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) |
