(self)
| 4734 | @support.requires_subprocess() |
| 4735 | class FDInheritanceTests(unittest.TestCase): |
| 4736 | def test_get_set_inheritable(self): |
| 4737 | fd = os.open(__file__, os.O_RDONLY) |
| 4738 | self.addCleanup(os.close, fd) |
| 4739 | self.assertEqual(os.get_inheritable(fd), False) |
| 4740 | |
| 4741 | os.set_inheritable(fd, True) |
| 4742 | self.assertEqual(os.get_inheritable(fd), True) |
| 4743 | |
| 4744 | @unittest.skipIf(fcntl is None, "need fcntl") |
| 4745 | def test_get_inheritable_cloexec(self): |
nothing calls this directly
no test coverage detected