Skip to content

test_xxtestfuzz emits DeprecationWarning #109098

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

test_xxtestfuzz emits deprecation warnings about modules sre_compile and sre_constants which always were internal. It should use public non-deprecated API.

$ ./python -Wa -m test -v test_xxtestfuzz
...
test_sample_input_smoke_test (test.test_xxtestfuzz.TestFuzzer.test_sample_input_smoke_test)
This is only a regression test: Check that it doesn't crash. ... /home/serhiy/py/cpython/Lib/test/test_xxtestfuzz.py:13: DeprecationWarning: module 'sre_compile' is deprecated
  _xxtestfuzz.run(b"")
/home/serhiy/py/cpython/Lib/test/test_xxtestfuzz.py:13: DeprecationWarning: module 'sre_constants' is deprecated
  _xxtestfuzz.run(b"")
ok
...

cc @ssbr, @ammaraskar

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.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