Skip to content

test_xxtestfuzz emits DeprecationWarning #109098

Closed

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

Activity

  1. added
    tests
    on Sep 7, 2023
  2. added
    3.11
    3.12
    3.13
    on Sep 26, 2023
  3. serhiy-storchaka commented on Sep 26, 2023

    @serhiy-storchaka
    MemberAuthor

    cc @ammaraskar

    These tests should be either removed or rewritten using the public API.

  4. added
    type-bug
    on Sep 26, 2023
  5. added 2 commits that reference this issue on Sep 26, 2023
  6. added a commit that references this issue on Sep 26, 2023
  7. added 2 commits that reference this issue on Sep 26, 2023
  8. gpshead commented on Sep 26, 2023

    @gpshead
    Member

    I believe that PR should fix this. if not, please feel free to reopen. thanks for the PR and reviews!

  9. added a commit that references this issue on Sep 27, 2023
  10. serhiy-storchaka commented on Sep 27, 2023

    @serhiy-storchaka
    MemberAuthor

    Do not miss merging in 3.12 branch.

  11. serhiy-storchaka commented on Sep 27, 2023

    @serhiy-storchaka
    MemberAuthor

    @gpshead Please do no forgot to edit commit message. It contains a duplicate of the subject and intermediate commit messages.

  12. added a commit that references this issue on Sep 28, 2023
  13. added a commit that references this issue on Oct 2, 2023
  14. added a commit that references this issue on Sep 2, 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.113.123.13teststype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions