mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882)
The select.epoll.unregister() method no longer ignores the EBADF error.
This commit is contained in:
parent
10ac0cded2
commit
5b23f7618d
5 changed files with 13 additions and 6 deletions
|
@ -225,7 +225,10 @@ class TestEPoll(unittest.TestCase):
|
|||
self.assertFalse(then - now > 0.01)
|
||||
|
||||
server.close()
|
||||
ep.unregister(fd)
|
||||
|
||||
with self.assertRaises(OSError) as cm:
|
||||
ep.unregister(fd)
|
||||
self.assertEqual(cm.exception.errno, errno.EBADF)
|
||||
|
||||
def test_close(self):
|
||||
open_file = open(__file__, "rb")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue