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
cca01835
Commit
cca01835
authored
Aug 27, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old "if 0:" block for leak detection; wouldn't work anymore anyway.
parent
aef8cfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
Lib/test/test_generators.py
Lib/test/test_generators.py
+1
-8
No files found.
Lib/test/test_generators.py
View file @
cca01835
...
...
@@ -1397,15 +1397,8 @@ __test__ = {"tut": tutorial_tests,
# Note that doctest and regrtest both look in sys.argv for a "-v" argument,
# so this works as expected in both ways of running regrtest.
def
test_main
(
verbose
=
None
):
import
doctest
from
test
import
test_support
,
test_generators
if
0
:
# change to 1 to run forever (to check for leaks)
while
1
:
doctest
.
master
=
None
test_support
.
run_doctest
(
test_generators
,
verbose
)
print
"."
,
else
:
test_support
.
run_doctest
(
test_generators
,
verbose
)
test_support
.
run_doctest
(
test_generators
,
verbose
)
# 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