MCPcopy Index your code
hub / github.com/python/cpython / test_fd_non_inheritable

Method test_fd_non_inheritable

Lib/test/test_epoll.py:271–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

269 self.assertEqual(cm.exception.errno, errno.EBADF)
270
271 def test_fd_non_inheritable(self):
272 epoll = select.epoll()
273 self.addCleanup(epoll.close)
274 self.assertEqual(os.get_inheritable(epoll.fileno()), False)
275
276
277if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

addCleanupMethod · 0.80
assertEqualMethod · 0.45
get_inheritableMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected