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
760155cc
Commit
760155cc
authored
May 15, 2011
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Plain Diff
Merge: Fix copy-paste mistake in new zlib test.
parents
a3221f82
1161a9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_zlib.py
Lib/test/test_zlib.py
+4
-2
No files found.
Lib/test/test_zlib.py
View file @
760155cc
...
@@ -528,9 +528,11 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
...
@@ -528,9 +528,11 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
if
size
<
_4G
+
100
:
if
size
<
_4G
+
100
:
self
.
skipTest
(
"not enough free memory, need at least 4 GB"
)
self
.
skipTest
(
"not enough free memory, need at least 4 GB"
)
data
=
b'x'
*
size
data
=
b'x'
*
size
c
=
zlib
.
compressobj
(
1
)
d
=
zlib
.
decompressobj
()
try
:
try
:
self
.
assertRaises
(
OverflowError
,
zlib
.
compress
,
data
,
1
)
self
.
assertRaises
(
OverflowError
,
c
.
compress
,
data
)
self
.
assertRaises
(
OverflowError
,
zlib
.
decompress
,
data
)
self
.
assertRaises
(
OverflowError
,
d
.
decompress
,
data
)
finally
:
finally
:
data
=
None
data
=
None
...
...
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