mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
don't fail if CLOEXEC doesn't exist
This commit is contained in:
parent
83251c1ecd
commit
70069fcd4b
1 changed files with 3 additions and 2 deletions
|
@ -75,8 +75,9 @@ 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)
|
||||
if hasattr(select, "EPOLL_CLOEXEC"):
|
||||
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