summaryrefslogtreecommitdiffstats
path: root/tests/test_option.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2007-11-12 21:58:15 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-11-12 21:58:15 +0000
commit555c368ad1f9e29dc15a018f795312d8b6a7fa0e (patch)
tree8bc59c3b9bbbbabee25f6c30f5bbca14c94bd4f4 /tests/test_option.py
parent825d8de9a85f60a4d747e5cf4531c0ac761cfa13 (diff)
downloadpygobject-555c368ad1f9e29dc15a018f795312d8b6a7fa0e.tar.gz
pygobject-555c368ad1f9e29dc15a018f795312d8b6a7fa0e.tar.xz
pygobject-555c368ad1f9e29dc15a018f795312d8b6a7fa0e.zip
Set the default value of old_args to 0, so we don't end up slicing with
2007-11-12 Johan Dahlin <johan@gnome.org> * gobject/option.py (OptionParser.parse_args): Set the default value of old_args to 0, so we don't end up slicing with None. Fixes #496278 (Vincent Untz) svn path=/trunk/; revision=718
Diffstat (limited to 'tests/test_option.py')
-rw-r--r--tests/test_option.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_option.py b/tests/test_option.py
index 2301553..69e1766 100644
--- a/tests/test_option.py
+++ b/tests/test_option.py
@@ -65,6 +65,9 @@ class TestOption(unittest.TestCase):
["test_option.py", "--", "-xxx"])
#self.assertEquals(args, ["-xxx"])
+ def testParseArgs(self):
+ options, args = self.parser.parse_args()
+
def testParseArgsGroup(self):
group = self._create_group()