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

Method test_open_non_inheritable

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

Source from the content-addressed store, hash-verified

1732
1733 @support.requires_subprocess()
1734 def test_open_non_inheritable(self):
1735 fileobj = open(__file__, encoding="utf-8")
1736 with fileobj:
1737 self.assertFalse(os.get_inheritable(fileobj.fileno()))
1738
1739 def test_ord(self):
1740 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