Skip to content

Fix testsuite for Python 3.14#16

Merged
GjjvdBurg merged 1 commit intoGjjvdBurg:masterfrom
baldurmen:python3_14
Feb 23, 2026
Merged

Fix testsuite for Python 3.14#16
GjjvdBurg merged 1 commit intoGjjvdBurg:masterfrom
baldurmen:python3_14

Conversation

@baldurmen
Copy link
Contributor

As documented in this bug report in Debian, the testsuite is currently failing with Python 3.14 with this error:

======================================================================
FAIL: test__format_actions_usage_1 (tests.test_formatter.HelpFormatterTestCase.test__format_actions_usage_1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_formatter.py", line 89, in test__format_actions_usage_1
    self.assertEqual(thehelp, exp)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
AssertionError: 'usage: test [-h] [-p | -j]\n\noptions:\n  -h, --help   [82 chars]lp\n' != 'usage: test [-p | --plain | -j | --json]\n\noptions:\n [96 chars]lp\n'
- usage: test [-h] [-p | -j]
+ usage: test [-p | --plain | -j | --json]
  
  options:
    -h, --help   show this help message and exit
    -p, --plain  plain help
    -j, --json   json help

This patch (I'm not the author) should fix the issue.

@baldurmen
Copy link
Contributor Author

The CI fails, but only since Python 3.7 can't be installed anymore...

@GjjvdBurg GjjvdBurg merged commit 607c84d into GjjvdBurg:master Feb 23, 2026
0 of 2 checks passed
@GjjvdBurg
Copy link
Owner

Thank you!

@GjjvdBurg
Copy link
Owner

Turns out it was caused by changes introduced in 3.14.3, fixed in #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants