diff --git a/doc/tests/test_doctests.py b/doc/tests/test_doctests.py
index 1fc04d24085b237adcf42e03ed0b639f78ee583f..862efe8f26adbe9c31fd496077dee59f88abc49a 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):