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
c5744300
Commit
c5744300
authored
Apr 14, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
a03f80e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
Lib/test/leakers/test_tee.py
Lib/test/leakers/test_tee.py
+16
-16
No files found.
Lib/test/leakers/test_tee.py
View file @
c5744300
...
@@ -6,20 +6,20 @@ from itertools import tee
...
@@ -6,20 +6,20 @@ from itertools import tee
import
gc
import
gc
def
leak
():
def
leak
():
def
inner
():
def
inner
():
def
fib
():
def
fib
():
def
yield_identity_forever
(
g
):
def
yield_identity_forever
(
g
):
while
1
:
while
1
:
yield
g
yield
g
def
_fib
():
def
_fib
():
for
i
in
yield_identity_forever
(
head
):
for
i
in
yield_identity_forever
(
head
):
yield
i
yield
i
head
,
tail
,
result
=
tee
(
_fib
(),
3
)
head
,
tail
,
result
=
tee
(
_fib
(),
3
)
return
result
return
result
x
=
fib
()
x
=
fib
()
x
.
next
()
x
.
next
()
inner
()
inner
()
gc
.
collect
()
;
gc
.
collect
()
gc
.
collect
()
;
gc
.
collect
()
# this is expected to return 0
# this is expected to return 0
return
gc
.
collect
()
return
gc
.
collect
()
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