Closed
Description
Bug report
Bug description:
./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