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

Method test_fileno

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

Source from the content-addressed store, hash-verified

1352 self.assertTrue(f._rolled)
1353
1354 def test_fileno(self):
1355 # A SpooledTemporaryFile should roll over to a real file on fileno()
1356 f = self.do_create(max_size=30)
1357 self.assertFalse(f._rolled)
1358 self.assertTrue(f.fileno() > 0)
1359 self.assertTrue(f._rolled)
1360
1361 def test_multiple_close_before_rollover(self):
1362 # 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