From dd7d509c3087da4de474aa989a75cf8e3038a6ba Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Mon, 4 Dec 2023 17:23:52 +0100
Subject: [PATCH] unit test fix

The fixed unit test explicitely checks output that came from the Python
argparse module. This output changed for newer versions.
---
 doc/tests/test_doctests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/tests/test_doctests.py b/doc/tests/test_doctests.py
index 1fc04d24..862efe8f 100644
--- a/doc/tests/test_doctests.py
+++ b/doc/tests/test_doctests.py
@@ -153,7 +153,7 @@ class DocTests(unittest.TestCase):
                          "Place the description of your script right in the file and import")
         self.assertEqual(out_lines[3].strip(),
                          "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)
 
     def testCoreMsgError(self):
-- 
GitLab