# Bug report ### Bug description: ```python ./python.exe -m test test_compile Using random seed: 123325304 0:00:00 load avg: 1.63 Run 1 test sequentially 0:00:00 load avg: 1.63 [1/1] test_compile /Users/admin/Projects/cpython/Lib/test/test_compile.py:530: DeprecationWarning: If.__init__ missing 1 required positional argument: 'test'. This will become an error in Python 3.15. self.assertRaises(TypeError, compile, _ast.If(), '<ast>', 'exec') /Users/admin/Projects/cpython/Lib/test/test_compile.py:534: DeprecationWarning: BoolOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15. ast.body = [_ast.BoolOp()] == Tests result: SUCCESS == 1 test OK. Total duration: 1.7 sec Total tests: run=158 skipped=1 Total test files: run=1/1 Result: SUCCES ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-116101 <!-- /gh-linked-prs -->
Activity
pythongh-116100: Add test argument to ast.If calls and op argument fo…
gh-116100: Add `test` arg to `ast.If` and `op` arg to `ast.BoolOp` ca…
JelleZijlstra commentedon Feb 29, 2024
Thanks for noticing and fixing this!
pythongh-116100: Add `test` arg to `ast.If` and `op` arg to `ast.Bool…
pythongh-116100: Add `test` arg to `ast.If` and `op` arg to `ast.Bool…
pythongh-116100: Add `test` arg to `ast.If` and `op` arg to `ast.Bool…