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
7cbd247a
Commit
7cbd247a
authored
Feb 12, 2003
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test to ensure files (fds) don't leak
parent
ad05cdfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Lib/test/test_bz2.py
Lib/test/test_bz2.py
+6
-0
No files found.
Lib/test/test_bz2.py
View file @
7cbd247a
...
...
@@ -218,6 +218,12 @@ class BZ2FileTest(BaseTest):
self
.
assertEqual
(
bz2f
.
read
(),
self
.
TEXT
)
bz2f
.
close
()
def
testOpenDel
(
self
):
self
.
createTempFile
()
for
i
in
xrange
(
10000
):
o
=
BZ2File
(
self
.
filename
)
del
o
class
BZ2CompressorTest
(
BaseTest
):
def
testCompress
(
self
):
# "Test BZ2Compressor.compress()/flush()"
...
...
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