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
d76c7c2b
Commit
d76c7c2b
authored
May 13, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored test_interleaved. After issue #8886 it was a duplicate of
test_different_file.
parent
9642eedc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/test/test_zipfile.py
Lib/test/test_zipfile.py
+5
-4
No files found.
Lib/test/test_zipfile.py
View file @
d76c7c2b
...
...
@@ -1809,11 +1809,12 @@ class TestsWithMultipleOpens(unittest.TestCase):
for
f
in
get_files
(
self
):
self
.
make_test_archive
(
f
)
with
zipfile
.
ZipFile
(
f
,
mode
=
"r"
)
as
zipf
:
with
zipf
.
open
(
'ones'
)
as
zopen1
,
zipf
.
open
(
'twos'
)
as
zopen2
:
with
zipf
.
open
(
'ones'
)
as
zopen1
:
data1
=
zopen1
.
read
(
500
)
data2
=
zopen2
.
read
(
500
)
data1
+=
zopen1
.
read
()
data2
+=
zopen2
.
read
()
with
zipf
.
open
(
'twos'
)
as
zopen2
:
data2
=
zopen2
.
read
(
500
)
data1
+=
zopen1
.
read
()
data2
+=
zopen2
.
read
()
self
.
assertEqual
(
data1
,
self
.
data1
)
self
.
assertEqual
(
data2
,
self
.
data2
)
...
...
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