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
5bb893c4
Commit
5bb893c4
authored
Jan 26, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize the test for issue #13454.
Now it requires almost 4x less memory and is almost 2x faster.
parent
ace3ad3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Lib/test/test_itertools.py
Lib/test/test_itertools.py
+2
-4
No files found.
Lib/test/test_itertools.py
View file @
5bb893c4
...
...
@@ -932,10 +932,8 @@ class TestBasicOps(unittest.TestCase):
# Issue 13454: Crash when deleting backward iterator from tee()
def
test_tee_del_backward
(
self
):
forward
,
backward
=
tee
(
range
(
20000000
))
for
i
in
forward
:
pass
forward
,
backward
=
tee
(
repeat
(
None
,
20000000
))
any
(
forward
)
# exhaust the iterator
del
backward
def
test_StopIteration
(
self
):
...
...
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