mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
add a flags parameter to select.epoll
This commit is contained in:
parent
e7437a7cb3
commit
2fb9ae9dfc
4 changed files with 31 additions and 24 deletions
|
@ -74,6 +74,8 @@ class TestEPoll(unittest.TestCase):
|
|||
ep.close()
|
||||
self.assertTrue(ep.closed)
|
||||
self.assertRaises(ValueError, ep.fileno)
|
||||
select.epoll(select.EPOLL_CLOEXEC).close()
|
||||
self.assertRaises(OSError, select.epoll, flags=12356)
|
||||
|
||||
def test_badcreate(self):
|
||||
self.assertRaises(TypeError, select.epoll, 1, 2, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue