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
7df2c4b7
Commit
7df2c4b7
authored
Apr 13, 2011
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Plain Diff
merge the change update.
parents
81848c37
8a3598fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Lib/test/regrtest.py
Lib/test/regrtest.py
+9
-1
No files found.
Lib/test/regrtest.py
View file @
7df2c4b7
...
...
@@ -240,7 +240,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
findleaks
=
False
,
use_resources
=
None
,
trace
=
False
,
coverdir
=
'coverage'
,
runleaks
=
False
,
huntrleaks
=
False
,
verbose2
=
False
,
print_slow
=
False
,
random_seed
=
None
,
use_mp
=
None
,
verbose3
=
False
,
forever
=
False
,
header
=
False
,
timeout
=
60
*
60
):
header
=
False
):
"""Execute a test suite.
This also parses command-line options and modifies its behavior
...
...
@@ -263,6 +263,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
directly to set the values that would normally be set by flags
on the command line.
"""
if
hasattr
(
faulthandler
,
'dump_tracebacks_later'
):
timeout
=
60
*
60
else
:
timeout
=
None
replace_stdout
()
...
...
@@ -409,6 +413,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
# join it with the saved CWD so it ends up where the user expects.
testdir
=
os
.
path
.
join
(
support
.
SAVEDCWD
,
a
)
elif
o
==
'--timeout'
:
if
not
hasattr
(
faulthandler
,
'dump_tracebacks_later'
):
print
(
"--timeout option requires "
"faulthandler.dump_tracebacks_later"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
timeout
=
float
(
a
)
else
:
print
((
"No handler for option {}. Please report this as a bug "
...
...
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