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

Method test_rewrite_small

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

Source from the content-addressed store, hash-verified

1274 )
1275
1276 def test_rewrite_small(self):
1277 # A SpooledTemporaryFile can be written to multiple within the max_size
1278 f = self.do_create(max_size=30)
1279 self.assertFalse(f._rolled)
1280 for i in range(5):
1281 f.seek(0, 0)
1282 f.write(b'x' * 20)
1283 self.assertFalse(f._rolled)
1284
1285 def test_write_sequential(self):
1286 # A SpooledTemporaryFile should hold exactly max_size bytes, and roll

Callers

nothing calls this directly

Calls 4

do_createMethod · 0.95
assertFalseMethod · 0.80
seekMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected