Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f799ca82
Commit
f799ca82
authored
Feb 25, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25801: Fixed resource warnings in test_zipfile64.
Patch by SilentGhost.
parents
62bc3218
f828218d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_zipfile64.py
Lib/test/test_zipfile64.py
+6
-2
No files found.
Lib/test/test_zipfile64.py
View file @
f799ca82
...
...
@@ -72,15 +72,19 @@ class TestsWithSourceFile(unittest.TestCase):
def
testStored
(
self
):
# Try the temp file first. If we do TESTFN2 first, then it hogs
# gigabytes of disk space for the duration of the test.
for
f
in
TemporaryFile
(),
TESTFN2
:
with
TemporaryFile
()
as
f
:
self
.
zipTest
(
f
,
zipfile
.
ZIP_STORED
)
self
.
assertFalse
(
f
.
closed
)
self
.
zipTest
(
TESTFN2
,
zipfile
.
ZIP_STORED
)
@
requires_zlib
def
testDeflated
(
self
):
# Try the temp file first. If we do TESTFN2 first, then it hogs
# gigabytes of disk space for the duration of the test.
for
f
in
TemporaryFile
(),
TESTFN2
:
with
TemporaryFile
()
as
f
:
self
.
zipTest
(
f
,
zipfile
.
ZIP_DEFLATED
)
self
.
assertFalse
(
f
.
closed
)
self
.
zipTest
(
TESTFN2
,
zipfile
.
ZIP_DEFLATED
)
def
tearDown
(
self
):
for
fname
in
TESTFN
,
TESTFN2
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment