Skip to content

Tests fail on Python 3.14b1 #163

@JelleZijlstra

Description

@JelleZijlstra

Running tests on a build of 3.14 beta 1 (plus some upcoming changes), I get the following test failures:

FAILED tests/test_subparser.py::TestSubparser::test_add_subparser_twice - ValueError: conflicting subparser: a
FAILED tests/test_subparser.py::TestSubparser::test_add_subparsers_twice - ValueError: cannot have multiple subparser arguments
FAILED tests/test_to_tap_class.py::test_subclasser_complex_help_message[function] - AssertionError: assert 'usage: pytes...sage and exit' == 'usage: pytes...sage and exit'
FAILED tests/test_to_tap_class.py::test_subclasser_complex_help_message[Class] - AssertionError: assert 'usage: pytes...sage and exit' == 'usage: pytes...sage and exit'
FAILED tests/test_to_tap_class.py::test_subclasser_complex_help_message[_Args] - AssertionError: assert 'usage: pytes...sage and exit' == 'usage: pytes...sage and exit'
FAILED tests/test_to_tap_class.py::test_subclasser_complex_help_message[class_or_function_3] - AssertionError: assert 'usage: pytes...sage and exit' == 'usage: pytes...sage and exit'
FAILED tests/test_utils.py::TypeToStrTests::test_type_to_str - AssertionError: 'List[int] | Dict[float, bool]' != 'Union[List[int], Dict[float, bool]]'

Most appear to be due to https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-typing-union, where now repr(Union[int, str]) == "int | str", but the first two look like some argparse change; I haven't investigated further.

I might send a patch for the Union issue later but no guarantee.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions