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

Method test_large_file_ops

Lib/test/test_io/test_general.py:346–357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344 self.read_ops(f, True)
345
346 def test_large_file_ops(self):
347 # On Windows and Apple platforms this test consumes large resources; It
348 # takes a long time to build the >2 GiB file and takes >2 GiB of disk
349 # space therefore the resource must be enabled to run this test.
350 if sys.platform[:3] == 'win' or is_apple:
351 support.requires(
352 'largefile',
353 'test requires %s bytes and a long time to run' % self.LARGE)
354 with self.open(os_helper.TESTFN, "w+b", 0) as f:
355 self.large_file_ops(f)
356 with self.open(os_helper.TESTFN, "w+b") as f:
357 self.large_file_ops(f)
358
359 def test_with_open(self):
360 for bufsize in (0, 100):

Callers

nothing calls this directly

Calls 3

large_file_opsMethod · 0.95
requiresMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected