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
32e06811
Commit
32e06811
authored
Jun 26, 2010
by
R. David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#4640: add a test to optparse that proves issue is invalid.
parent
cf3e20c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/test/test_optparse.py
Lib/test/test_optparse.py
+5
-0
No files found.
Lib/test/test_optparse.py
View file @
32e06811
...
...
@@ -764,6 +764,11 @@ class TestStandard(BaseTest):
{
'a'
:
"-b3"
,
'boo'
:
None
,
'foo'
:
None
},
[])
def
test_combined_single_invalid_option
(
self
):
self
.
parser
.
add_option
(
"-t"
,
action
=
"store_true"
)
self
.
assertParseFail
([
"-test"
],
"no such option: -e"
)
class
TestBool
(
BaseTest
):
def
setUp
(
self
):
options
=
[
make_option
(
"-v"
,
...
...
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