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
60eab2b6
Commit
60eab2b6
authored
Apr 15, 2006
by
Thomas Wouters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate 'leak_test1' and 'refleaks_tests', since they both test for the
same kind of thing.
parent
b3deb94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
Lib/test/test_generators.py
Lib/test/test_generators.py
+15
-17
No files found.
Lib/test/test_generators.py
View file @
60eab2b6
...
...
@@ -723,22 +723,6 @@ Ye olde Fibonacci generator, tee style.
"""
leak_test1
=
"""
This test leaked at one point due to generator finalization/destruction.
It was copied from Lib/test/leakers/test_generator_cycle.py before the file
was removed.
>>> def leak():
... def gen():
... while True:
... yield g
... g = gen()
>>> leak()
"""
# syntax_tests mostly provokes SyntaxErrors. Also fiddling with #if 0
# hackery.
...
...
@@ -1746,6 +1730,21 @@ which stores returned items.
>>> item = it.next()
This test leaked at one point due to generator finalization/destruction.
It was copied from Lib/test/leakers/test_generator_cycle.py before the file
was removed.
>>> def leak():
... def gen():
... while True:
... yield g
... g = gen()
>>> leak()
There should be more test_generator-induced refleaks here, after they get
fixed.
...
...
@@ -1755,7 +1754,6 @@ __test__ = {"tut": tutorial_tests,
"pep"
:
pep_tests
,
"email"
:
email_tests
,
"fun"
:
fun_tests
,
"leak1"
:
leak_test1
,
"syntax"
:
syntax_tests
,
"conjoin"
:
conjoin_tests
,
"weakref"
:
weakref_tests
,
...
...
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