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

Method test_open_non_inheritable

Lib/test/test_builtin.py:1684–1687  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1682
1683 @support.requires_subprocess()
1684 def test_open_non_inheritable(self):
1685 fileobj = open(__file__, encoding="utf-8")
1686 with fileobj:
1687 self.assertFalse(os.get_inheritable(fileobj.fileno()))
1688
1689 def test_ord(self):
1690 self.assertEqual(ord(' '), 32)

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
openFunction · 0.50
get_inheritableMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected