19 lines
857 B
Diff
19 lines
857 B
Diff
Patch-Source: https://github.com/sphinx-contrib/autoprogram/pull/25
|
|
|
|
diff --git a/sphinxcontrib/autoprogram.py b/sphinxcontrib/autoprogram.py
|
|
index c60cf68..0e7d9a0 100644
|
|
--- a/sphinxcontrib/autoprogram.py
|
|
+++ b/sphinxcontrib/autoprogram.py
|
|
@@ -476,7 +476,11 @@ class ScannerTestCase(unittest.TestCase):
|
|
# section: default optionals
|
|
program, options, group = sections[1]
|
|
self.assertEqual([], program)
|
|
- self.assertEqual("optional arguments", group.title)
|
|
+ # See https://github.com/sphinx-contrib/autoprogram/issues/24
|
|
+ if sys.version_info >= (3, 10):
|
|
+ self.assertEqual("options", group.title)
|
|
+ else:
|
|
+ self.assertEqual("optional arguments", group.title)
|
|
self.assertEqual(None, group.description)
|
|
self.assertEqual(2, len(options))
|
|
self.assertEqual(
|