~ruther/guix-local

ref: 8ed9ce9d0070b854f0aadc6626e624ba2156c112 guix-local/gnu/packages/patches/python-uqbar-python3.10.patch -rw-r--r-- 796 bytes
8ed9ce9d — Sharlatan Hellseher gnu: go-github-com-danwakefield-fnmatch: Move to golang-xyz. 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Since Python 3.10 the output of a CLI program created with argparse
uses "options" instead of "optional arguments". This behaviour breaks
the tests in python-uqbar.

--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -84,7 +84,7 @@ def test_call_help():
 
         speak like a cat
 
-        optional arguments:
+        options:
           -h, --help  show this help message and exit
           --version   show program's version number and exit
           --loud      be adamant
@@ -101,6 +101,6 @@ def test_help():
         """
         usage: vox-aggregator [-h] [--version] {help,list,birds,mammals} ...
 
-        optional arguments:
+        options:
           -h, --help            show this help message and exit
           --version             show program's version number and exit