Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:backports
python-dictknife
support-python-310.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File support-python-310.patch of Package python-dictknife
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()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor