Skip to content

test_unparse raises a DeprecationWarning #116030

@Eclips4

Description

@Eclips4

Bug report

Bug description:

./python.exe -m test test_unparse
Using random seed: 1839524422
0:00:00 load avg: 8.33 Run 1 test sequentially
0:00:00 load avg: 8.33 [1/1] test_unparse
/Users/admin/Projects/cpython/Lib/test/test_unparse.py:721: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
  type_params=[ast.TypeVar("T", bound=ast.Name("int"))],
/Users/admin/Projects/cpython/Lib/test/test_unparse.py:379: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
  ast.Name(id="test"),
/Users/admin/Projects/cpython/Lib/test/test_unparse.py:373: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
  self.check_invalid(ast.Raise(exc=None, cause=ast.Name(id="X")))

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1.9 sec
Total tests: run=69
Total test files: run=1/1
Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions