Skip to content

test_compile raises a DeprecationWarning #116100

Closed

Description

@Eclips4

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

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    3.13only security fixes
    on Feb 29, 2024
  2. added a commit that references this issue on Feb 29, 2024
  3. added a commit that references this issue on Feb 29, 2024
  4. JelleZijlstra commented on Feb 29, 2024

    @JelleZijlstra
    Member

    Thanks for noticing and fixing this!

  5. added a commit that references this issue on Mar 4, 2024
  6. added a commit that references this issue on Mar 25, 2024
  7. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only 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