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

Method testStored

Lib/test/test_zipfile64.py:69–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self.assertIsNone(zipfp.testzip())
68
69 def testStored(self):
70 # Try the temp file first. If we do TESTFN2 first, then it hogs
71 # gigabytes of disk space for the duration of the test.
72 with TemporaryFile() as f:
73 self.zipTest(f, zipfile.ZIP_STORED)
74 self.assertFalse(f.closed)
75 self.zipTest(TESTFN2, zipfile.ZIP_STORED)
76
77 @requires_zlib()
78 def testDeflated(self):

Callers

nothing calls this directly

Calls 3

zipTestMethod · 0.95
TemporaryFileFunction · 0.90
assertFalseMethod · 0.80

Tested by

no test coverage detected