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

Method test_large_file_ops

Lib/test/test_io.py:651–662  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

649 self.read_ops(f, True)
650
651 def test_large_file_ops(self):
652 # On Windows and Apple platforms this test consumes large resources; It
653 # takes a long time to build the >2 GiB file and takes >2 GiB of disk
654 # space therefore the resource must be enabled to run this test.
655 if sys.platform[:3] == 'win' or is_apple:
656 support.requires(
657 'largefile',
658 'test requires %s bytes and a long time to run' % self.LARGE)
659 with self.open(os_helper.TESTFN, "w+b", 0) as f:
660 self.large_file_ops(f)
661 with self.open(os_helper.TESTFN, "w+b") as f:
662 self.large_file_ops(f)
663
664 def test_with_open(self):
665 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