Skip to content

test_compile raises a DeprecationWarning #116100

Closed
@Eclips4

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy