From 555c368ad1f9e29dc15a018f795312d8b6a7fa0e Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 12 Nov 2007 21:58:15 +0000 Subject: Set the default value of old_args to 0, so we don't end up slicing with 2007-11-12 Johan Dahlin * 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 --- tests/test_option.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_option.py') 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() -- cgit