diff options
Diffstat (limited to 'Lib/test/test_optparse.py')
| -rw-r--r-- | Lib/test/test_optparse.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 7b95612..d1ae757 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -631,7 +631,7 @@ class TestStandard(BaseTest):                                                 option_list=options)      def test_required_value(self): -        self.assertParseFail(["-a"], "-a option requires an argument") +        self.assertParseFail(["-a"], "-a option requires 1 argument")      def test_invalid_integer(self):          self.assertParseFail(["-b", "5x"], @@ -1023,7 +1023,7 @@ class TestExtendAddTypes(BaseTest):          TYPE_CHECKER["file"] = check_file      def test_filetype_ok(self): -        open(support.TESTFN, "w").close() +        support.create_empty_file(support.TESTFN)          self.assertParseOK(["--file", support.TESTFN, "-afoo"],                             {'file': support.TESTFN, 'a': 'foo'},                             []) | 
