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

Method test_fd_non_inheritable

Lib/test/test_devpoll.py:125–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 self.assertEqual(cm.exception.errno, errno.EBADF)
124
125 def test_fd_non_inheritable(self):
126 devpoll = select.devpoll()
127 self.addCleanup(devpoll.close)
128 self.assertEqual(os.get_inheritable(devpoll.fileno()), False)
129
130 def test_events_mask_overflow(self):
131 pollster = select.devpoll()

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