diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
commit | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (patch) | |
tree | c8af0fd04194aed03cf067d44e53c7edd3e9ab84 /dev-python/argh/files | |
parent | e9d044d4b9b71200a96adfa280848858c0f468c9 (diff) |
gentoo resync : 05.12.2021
Diffstat (limited to 'dev-python/argh/files')
-rw-r--r-- | dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch b/dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch new file mode 100644 index 000000000000..5835c5acbb8e --- /dev/null +++ b/dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch @@ -0,0 +1,31 @@ +diff --git a/test/test_integration.py b/test/test_integration.py +index 8899d8e..589f6d6 100644 +--- a/test/test_integration.py ++++ b/test/test_integration.py +@@ -377,7 +377,7 @@ def test_invalid_choice(): + p = DebugArghParser() + p.add_commands([cmd]) + +- assert run(p, 'bar', exit=True).startswith('invalid choice') ++ assert 'invalid choice' in run(p, 'bar', exit=True) + + if sys.version_info < (3,3): + # Python before 3.3 exits with a less informative error +@@ -391,7 +391,7 @@ def test_invalid_choice(): + p = DebugArghParser() + p.add_commands([cmd], namespace='nest') + +- assert run(p, 'nest bar', exit=True).startswith('invalid choice') ++ assert 'invalid choice' in run(p, 'nest bar', exit=True) + + if sys.version_info < (3,3): + # Python before 3.3 exits with a less informative error +@@ -511,7 +511,7 @@ def test_explicit_cmd_name(): + + p = DebugArghParser() + p.add_commands([orig_name]) +- assert run(p, 'orig-name', exit=True).startswith('invalid choice') ++ assert 'invalid choice' in run(p, 'orig-name', exit=True) + assert run(p, 'new-name').out == 'ok\n' + + |