MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_fd_non_inheritable

Method test_fd_non_inheritable

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

Source from the content-addressed store, hash-verified

260 self.assertRaises(ValueError, epoll.unregister, fd)
261
262 def test_fd_non_inheritable(self):
263 epoll = select.epoll()
264 self.addCleanup(epoll.close)
265 self.assertEqual(os.get_inheritable(epoll.fileno()), False)
266
267
268if __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