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

Method test_fileno

Lib/test/test_tempfile.py:1335–1340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1333 self.assertTrue(f._rolled)
1334
1335 def test_fileno(self):
1336 # A SpooledTemporaryFile should roll over to a real file on fileno()
1337 f = self.do_create(max_size=30)
1338 self.assertFalse(f._rolled)
1339 self.assertTrue(f.fileno() > 0)
1340 self.assertTrue(f._rolled)
1341
1342 def test_multiple_close_before_rollover(self):
1343 # A SpooledTemporaryFile can be closed many times without error

Callers

nothing calls this directly

Calls 4

do_createMethod · 0.95
assertFalseMethod · 0.80
assertTrueMethod · 0.80
filenoMethod · 0.45

Tested by

no test coverage detected