cpython: ffd70c371fee (original) (raw)
Mercurial > cpython
changeset 78567:ffd70c371fee 2.7
#9161: Fix test to use standard optparse test pattern (what was I thinking?) [#9161]
R David Murray rdmurray@bitdance.com | |
---|---|
date | Tue, 14 Aug 2012 09:14:37 -0400 |
parents | bef098bd3fa5 |
children | b7d4a13c736e |
files | Lib/test/test_optparse.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-)[+] [-] Lib/test/test_optparse.py 12 |
line wrap: on
line diff
--- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -769,12 +769,12 @@ class TestStandard(BaseTest): self.assertParseFail(["-test"], "no such option: -e")
- def test_flag_accepts_unicode(self):
try:[](#l1.8)
self.parser.add_option(u"-u", u"--unicode")[](#l1.9)
self.parser.parse_args()[](#l1.10)
except TypeError:[](#l1.11)
self.fail("Failed parsing flag passed to add_option() as unicode.")[](#l1.12)