Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_ast raises a DeprecationWarning #118374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Eclips4 opened this issue Apr 29, 2024 · 1 comment
Closed

test_ast raises a DeprecationWarning #118374

Eclips4 opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Apr 29, 2024

Bug report

Bug description:

./python.exe -m test -q test_ast
Using random seed: 2061872940
0:00:00 load avg: 4.08 Run 1 test sequentially
/Users/admin/Projects/cpython/Lib/test/test_ast.py:1356: DeprecationWarning: Name.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
  [ast.Name('dataclass')],

== Tests result: SUCCESS ==

Total duration: 3.3 sec
Total tests: run=168 skipped=1
Total test files: run=1/1
Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

@Eclips4 Eclips4 added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Apr 29, 2024
@JelleZijlstra JelleZijlstra self-assigned this Apr 29, 2024
@JelleZijlstra
Copy link
Member

Probably just need to add , ast.Load(). If someone sends a PR I'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants