Skip to content

Third-party tests failed on Thu Dec 05 2024 #513

Closed

Description

@github-actions

Activity

  1. brianschubert commented on Dec 5, 2024

    @brianschubert
    Contributor

    https://github.com/python/typing_extensions/actions/runs/12172317648/job/33950775320

    typed-argument-parser tests are failing on 3.13:

    =========================== short test summary info ============================
    FAILED tests/test_to_tap_class.py::test_subclasser_subparser[function-args_string_and_arg_to_expected_value7] - assert "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" in "usage: pytest [--foo] --arg_int ARG_INT [--arg_bool]\n              [--arg_list [ARG_LIST ...]] [-h]\n              {a,b} ...\npytest: error: argument {a,b}: invalid choice: 'X' (choose from a, b)\n"
     +  where "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" = str(SystemExit("error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')"))
    FAILED tests/test_to_tap_class.py::test_subclasser_subparser[Class-args_string_and_arg_to_expected_value7] - assert "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" in "usage: pytest [--foo] --arg_int ARG_INT [--arg_bool]\n              [--arg_list [ARG_LIST ...]] [-h]\n              {a,b} ...\npytest: error: argument {a,b}: invalid choice: 'X' (choose from a, b)\n"
     +  where "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" = str(SystemExit("error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')"))
    FAILED tests/test_to_tap_class.py::test_subclasser_subparser[_Args-args_string_and_arg_to_expected_value7] - assert "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" in "usage: pytest [--foo] --arg_int ARG_INT [--arg_bool]\n              [--arg_list [ARG_LIST ...]] [-h]\n              {a,b} ...\npytest: error: argument {a,b}: invalid choice: 'X' (choose from a, b)\n"
     +  where "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" = str(SystemExit("error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')"))
    FAILED tests/test_to_tap_class.py::test_subclasser_subparser[class_or_function_3-args_string_and_arg_to_expected_value7] - assert "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" in "usage: pytest [--foo] --arg_int ARG_INT [--arg_bool]\n              [--arg_list [ARG_LIST ...]] [-h]\n              {a,b} ...\npytest: error: argument {a,b}: invalid choice: 'X' (choose from a, b)\n"
     +  where "error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')" = str(SystemExit("error: argument {a,b}: invalid choice: 'X' (choose from 'a', 'b')"))
    ======================== 4 failed, 301 passed in 1.58s =========================
    
  2. JelleZijlstra commented on Dec 5, 2024

    @JelleZijlstra
    Member

    Likely related to argparse changes in 3.13.1?

  3. AlexWaygood commented on Dec 5, 2024

    @AlexWaygood
    Member

    If we need to we should skip TAP tests on 3.13 for now in this workflow until it's fixed upstream

  4. brianschubert commented on Dec 5, 2024

    @brianschubert
    Contributor

    Looks like a consequence of python/cpython#117766, which changed how the choices are displayed in the error message (switched from repr to str). That PR was also backported to 3.12.8, so we should probably skip the TAP tests on 3.12 as well if we go that route (we didn't see failures this time since the runner was still using 3.12.7).

  5. JelleZijlstra commented on Dec 5, 2024

    @JelleZijlstra
    Member

    @brianschubert thanks! Would you mind mentioning that on the issue I opened (linked above) on the typed-argument-parser repo? Perhaps they'll be able to fix it quickly. If not, I can send a PR later today to disable the tests here.

  6. JelleZijlstra commented on Dec 6, 2024

    @JelleZijlstra
    Member

    Fixed in #515 (where I put the wrong number)

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

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