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

Method test_dup_standard_stream

Lib/test/test_os.py:4816–4819  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4814 self.assertEqual(os.get_inheritable(fd2), False)
4815
4816 def test_dup_standard_stream(self):
4817 fd = os.dup(1)
4818 self.addCleanup(os.close, fd)
4819 self.assertGreater(fd, 0)
4820
4821 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
4822 def test_dup_nul(self):

Callers

nothing calls this directly

Calls 3

addCleanupMethod · 0.80
assertGreaterMethod · 0.80
dupMethod · 0.45

Tested by

no test coverage detected