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
96a2d53a
Commit
96a2d53a
authored
Mar 06, 2010
by
Florent Xicluna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TypeError on usage() when using regrtest switches which are not compatible.
parent
d658f0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/regrtest.py
Lib/test/regrtest.py
+3
-2
No files found.
Lib/test/regrtest.py
View file @
96a2d53a
...
...
@@ -162,6 +162,7 @@ import tempfile
import
platform
import
sysconfig
# Some times __path__ and __file__ are not absolute (e.g. while running from
# Lib/) and, if we change the CWD to run the tests in a temporary dir, some
# imports might fail. This affects only the modules imported before os.chdir().
...
...
@@ -385,9 +386,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
if
single
and
fromfile
:
usage
(
"-s and -f don't go together!"
)
if
use_mp
and
trace
:
usage
(
2
,
"-T and -j don't go together!"
)
usage
(
"-T and -j don't go together!"
)
if
use_mp
and
findleaks
:
usage
(
2
,
"-l and -j don't go together!"
)
usage
(
"-l and -j don't go together!"
)
if
use_mp
and
max
(
sys
.
flags
):
# TODO: inherit the environment and the flags
print
(
"Warning: flags and environment variables are ignored with -j option"
)
...
...
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