Skip to content

Conversation

@jhradilek
Copy link
Owner

In Python 3.14, the argparse module now enables colored output by default. Because of this, two of the tests that compare the error message started failing because of the unexpected control sequences in the colored output. This pull request disables colors for those two tests.

Implementation checklist

  • The code changes come with the corresponding test cases
  • The code changes pass all tests (run python3 -m unittest in the project directory)
  • The code changes come with appropriate documentation

Because the Python 3.14 version of argparse enables colored output by
default, two tests that rely on the displayed error message failed due
to the unexpected escape sequences in the tested output.
@jhradilek jhradilek self-assigned this Nov 10, 2025
@jhradilek jhradilek added the bug Something isn't working label Nov 10, 2025
@jhradilek jhradilek merged commit 06e8a99 into main Nov 10, 2025
5 checks passed
@jhradilek jhradilek deleted the fix-argparse-tests branch November 10, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants