15
0
Files
python-dictknife/support-python-310.patch
Matej Cepl e978930302 - Update to 0.14.2
* Use hatch (#205)
  * style: fmt
  * fix: fix for lint
  * chore: refine github actions (#206)
  * Typing (#207)
  * Create AGENTS.md for jules (#210)
  * Refactor: Migrate to src layout (#211)
  * feat: Add English docstrings to public APIs (#212)
  * Update AGENTS.md
  * Add docstrings to public APIs in dictknife.loading
    and submodules (#213)
  * fix: fix type, loading module
  * chore: bump version
- Drop support-python-310.patch, fixed upstream
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictknife?expand=0&rev=15
2025-07-31 15:37:46 +00:00

34 lines
996 B
Diff

Index: dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
===================================================================
--- dictknife-0.14.0.orig/dictknife/tests/cliutils/test_extraarguments.py
+++ dictknife-0.14.0/dictknife/tests/cliutils/test_extraarguments.py
@@ -1,3 +1,4 @@
+import sys
import textwrap
import unittest
@@ -22,18 +23,21 @@ class Tests(unittest.TestCase):
return target
def test_help_message(self):
+ ending = "al arguments"
+ if sys.version_info >= (3, 10):
+ ending = "s"
target = self._makeOne()
expected = textwrap.dedent(
"""
usage: cmd [-h]
- options:
+ option%s:
-h, --help show this help message and exit
extra arguments: (with --extra<option>)
for --format=json:
--sort-keys sort keys
- """
+ """ % (ending, )
).strip()
actual = target.parser.format_help().strip()