Skip to content

test_compile raises a DeprecationWarning #116100

Description

@Eclips4

Bug report

Bug description:

./python.exe-mtesttest_compileUsingrandomseed: 1233253040:00:00loadavg: 1.63Run1testsequentially0:00:00loadavg: 1.63 [1/1] test_compile/Users/admin/Projects/cpython/Lib/test/test_compile.py:530: DeprecationWarning: If.__init__missing1requiredpositionalargument: 'test'. ThiswillbecomeanerrorinPython3.15.
self.assertRaises(TypeError, compile, _ast.If(), '<ast>', 'exec')
/Users/admin/Projects/cpython/Lib/test/test_compile.py:534: DeprecationWarning: BoolOp.__init__missing1requiredpositionalargument: 'op'. ThiswillbecomeanerrorinPython3.15.
ast.body= [_ast.BoolOp()]
==Testsresult: SUCCESS==1testOK.
Totalduration: 1.7secTotaltests: run=158skipped=1Totaltestfiles: run=1/1Result: SUCCES

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

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