Commit fe9efc57 authored by R David Murray's avatar R David Murray

#9161: add test for the bug fixed by r82581.

Patch by Michael Johnson.
parent bc77d369
......@@ -769,6 +769,13 @@ 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.")
class TestBool(BaseTest):
def setUp(self):
options = [make_option("-v",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment