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

Method testDeflated

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

Source from the content-addressed store, hash-verified

76
77 @requires_zlib()
78 def testDeflated(self):
79 # Try the temp file first. If we do TESTFN2 first, then it hogs
80 # gigabytes of disk space for the duration of the test.
81 with TemporaryFile() as f:
82 self.zipTest(f, zipfile.ZIP_DEFLATED)
83 self.assertFalse(f.closed)
84 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED)
85
86 def tearDown(self):
87 os_helper.unlink(TESTFN2)

Callers

nothing calls this directly

Calls 3

zipTestMethod · 0.95
TemporaryFileFunction · 0.90
assertFalseMethod · 0.80

Tested by

no test coverage detected