(self)
| 4458 | @support.requires_subprocess() |
| 4459 | class FDInheritanceTests(unittest.TestCase): |
| 4460 | def test_get_set_inheritable(self): |
| 4461 | fd = os.open(__file__, os.O_RDONLY) |
| 4462 | self.addCleanup(os.close, fd) |
| 4463 | self.assertEqual(os.get_inheritable(fd), False) |
| 4464 | |
| 4465 | os.set_inheritable(fd, True) |
| 4466 | self.assertEqual(os.get_inheritable(fd), True) |
| 4467 | |
| 4468 | @unittest.skipIf(fcntl is None, "need fcntl") |
| 4469 | def test_get_inheritable_cloexec(self): |
nothing calls this directly
no test coverage detected