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
2106ef02
Commit
2106ef02
authored
Jun 25, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair indentation in comment.
Add a temporary driver to help track down remaining leak(s).
parent
a2ca1ae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Lib/test/test_generators.py
Lib/test/test_generators.py
+9
-2
No files found.
Lib/test/test_generators.py
View file @
2106ef02
...
...
@@ -15,7 +15,7 @@ Let's try a simple generator:
>>> g.next()
2
"Falling off the end" stops the generator:
"Falling off the end" stops the generator:
>>> g.next()
Traceback (most recent call last):
...
...
@@ -582,7 +582,14 @@ __test__ = {"tut": tutorial_tests,
# so this works as expected in both ways of running regrtest.
def
test_main
():
import
doctest
,
test_generators
doctest
.
testmod
(
test_generators
)
if
0
:
# Temporary block to help track down leaks. So far, the blame
# has fallen mostly on doctest.
for
i
in
range
(
1000
):
doctest
.
master
=
None
doctest
.
testmod
(
test_generators
)
else
:
doctest
.
testmod
(
test_generators
)
# This part isn't needed for regrtest, but for running the test directly.
if
__name__
==
"__main__"
:
...
...
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