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
7cd8b42f
Commit
7cd8b42f
authored
Aug 14, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9161: Fix test to use standard optparse test pattern (what was I thinking?)
parent
6bcd00af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/test/test_optparse.py
Lib/test/test_optparse.py
+6
-6
No files found.
Lib/test/test_optparse.py
View file @
7cd8b42f
...
...
@@ -769,12 +769,12 @@ class TestStandard(BaseTest):
self
.
assertParseFail
([
"-test"
],
"no such option: -e"
)
def
test_
flag
_accepts_unicode
(
self
):
try
:
self
.
parser
.
add_option
(
u"-u"
,
u"--unicode"
)
self
.
parser
.
parse_args
()
except
TypeError
:
self
.
fail
(
"Failed parsing flag passed to add_option() as unicode."
)
def
test_
add_option
_accepts_unicode
(
self
):
self
.
parser
.
add_option
(
u"-u"
,
u"--unicode"
,
action
=
"store_true"
)
self
.
assertParseOK
([
"-u"
],
{
'a'
:
None
,
'boo'
:
None
,
'foo'
:
None
,
'unicode'
:
True
},
[])
class
TestBool
(
BaseTest
):
def
setUp
(
self
):
...
...
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