diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-03-26 00:14:08 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-03-26 00:14:08 (GMT) |
commit | 3fa1aaebde6408dcfe169932d35bf922a77e64c9 (patch) | |
tree | c8c87ce19082e006e2cd9139031324d94dba71ed /Lib/test/test_optparse.py | |
parent | 765531d2d083c7a4e9478fcd960eebe04ac6b192 (diff) | |
download | cpython-3fa1aaebde6408dcfe169932d35bf922a77e64c9.zip cpython-3fa1aaebde6408dcfe169932d35bf922a77e64c9.tar.gz cpython-3fa1aaebde6408dcfe169932d35bf922a77e64c9.tar.bz2 |
Issue #17516: do not create useless tuple: remove dummy commas in tests
Diffstat (limited to 'Lib/test/test_optparse.py')
-rw-r--r-- | Lib/test/test_optparse.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 78de278..9473011 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -730,7 +730,7 @@ class TestStandard(BaseTest): def test_short_and_long_option_split(self): self.assertParseOK(["-a", "xyz", "--foo", "bar"], {'a': 'xyz', 'boo': None, 'foo': ["bar"]}, - []), + []) def test_short_option_split_long_option_append(self): self.assertParseOK(["--foo=bar", "-b", "123", "--foo", "baz"], @@ -740,15 +740,15 @@ class TestStandard(BaseTest): def test_short_option_split_one_positional_arg(self): self.assertParseOK(["-a", "foo", "bar"], {'a': "foo", 'boo': None, 'foo': None}, - ["bar"]), + ["bar"]) def test_short_option_consumes_separator(self): self.assertParseOK(["-a", "--", "foo", "bar"], {'a': "--", 'boo': None, 'foo': None}, - ["foo", "bar"]), + ["foo", "bar"]) self.assertParseOK(["-a", "--", "--foo", "bar"], {'a': "--", 'boo': None, 'foo': ["bar"]}, - []), + []) def test_short_option_joined_and_separator(self): self.assertParseOK(["-ab", "--", "--foo", "bar"], |