mirror of
https://github.com/python/cpython.git
synced 2024-12-01 05:45:40 +08:00
don't fail if CLOEXEC doesn't exist
This commit is contained in:
parent
83251c1ecd
commit
70069fcd4b
@ -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…
Reference in New Issue
Block a user