Skip to content

Tests fail on Python 3.13Β #150

@JelleZijlstra

Description

@JelleZijlstra

A number of tests fail when typed-argument-parser is run on 3.13. Looks like some help output changed.

=========================== short test summary info ============================
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'
  
  Skipping 138 identical leading characters in diff, use -v to show
  - ions: -arg ARGUMENT_WITH_REALLY_LONG_NAME, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message and exit
  ?                                          -----------------------------------------------------------------
  + ions: -arg, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message 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'
  
  Skipping 138 identical leading characters in diff, use -v to show
  - ions: -arg ARGUMENT_WITH_REALLY_LONG_NAME, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message and exit
  ?                                          -----------------------------------------------------------------
  + ions: -arg, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message 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'
  
  Skipping 138 identical leading characters in diff, use -v to show
  - ions: -arg ARGUMENT_WITH_REALLY_LONG_NAME, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message and exit
  ?                                          -----------------------------------------------------------------
  + ions: -arg, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message 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'
  
  Skipping 138 identical leading characters in diff, use -v to show
  - ions: -arg ARGUMENT_WITH_REALLY_LONG_NAME, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message and exit
  ?                                          -----------------------------------------------------------------
  + ions: -arg, --argument_with_really_long_name ARGUMENT_WITH_REALLY_LONG_NAME (Union[float, int], default=3) This argument has a long name and will be aliased with a short one --arg_int ARG_INT (int, required) some integer --arg_bool (bool, default=True) --arg_list [ARG_LIST ...] (Optional[List[str]], default=None) some list of strings -h, --help show this help message and exit
  ?           ++++++++++++++++++++++++++++++++++
======================== 4 failed, [299](https://github.com/python/typing_extensions/actions/runs/11285716477/job/31388972083?pr=484#step:10:300) passed in 1.32s =========================

Found this while working on python/typing_extensions#484.

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