Skip to content
Snippets Groups Projects
Commit dd7d509c authored by Studer Gabriel's avatar Studer Gabriel
Browse files

unit test fix

The fixed unit test explicitely checks output that came from the Python
argparse module. This output changed for newer versions.
parent 7aa4bdcd
Branches
Tags
No related merge requests found
...@@ -153,7 +153,7 @@ class DocTests(unittest.TestCase): ...@@ -153,7 +153,7 @@ class DocTests(unittest.TestCase):
"Place the description of your script right in the file and import") "Place the description of your script right in the file and import")
self.assertEqual(out_lines[3].strip(), self.assertEqual(out_lines[3].strip(),
"it via '__doc__' as description to the parser ('-h', '--help').") "it via '__doc__' as description to the parser ('-h', '--help').")
self.assertEqual(out_lines[5].strip(), "optional arguments:") self.assertTrue(out_lines[5].strip() in ["optional arguments:", "options:"])
self.assertGreater(len(out_lines), 5) self.assertGreater(len(out_lines), 5)
def testCoreMsgError(self): def testCoreMsgError(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment