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
da82689d
Commit
da82689d
authored
Nov 15, 2009
by
R. David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 7324: add a sanity check to regrtest argument parsing to
catch the case of an option with no handler.
parent
ca020bb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Lib/test/regrtest.py
Lib/test/regrtest.py
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/regrtest.py
View file @
da82689d
...
@@ -344,6 +344,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
...
@@ -344,6 +344,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
print
# Force a newline (just in case)
print
# Force a newline (just in case)
print
json
.
dumps
(
result
)
print
json
.
dumps
(
result
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
else
:
print
>>
sys
.
stderr
,
(
"No handler for option {}. Please "
"report this as a bug at http://bugs.python.org."
).
format
(
o
)
sys
.
exit
(
1
)
if
single
and
fromfile
:
if
single
and
fromfile
:
usage
(
2
,
"-s and -f don't go together!"
)
usage
(
2
,
"-s and -f don't go together!"
)
if
use_mp
and
trace
:
if
use_mp
and
trace
:
...
...
Misc/NEWS
View file @
da82689d
...
@@ -1567,6 +1567,9 @@ Extension Modules
...
@@ -1567,6 +1567,9 @@ Extension Modules
Tests
Tests
-----
-----
- Issue #7324: add a sanity check to regrtest argument parsing to
catch the case of an option with no handler.
- Issue #7312: Add a -F flag to run the selected tests in a loop until
- Issue #7312: Add a -F flag to run the selected tests in a loop until
a test fails. Can be combined with -j.
a test fails. Can be combined with -j.
...
...
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