Skip to content

Unhandled BytesWarning when test.support.strace_helper.strace_python fails#127747

@andreas-schwab

Description

@andreas-schwab
====================================================================== FAIL: test_all (test.test___all__.AllTest.test_all) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/abuild/rpmbuild/BUILD/Python-3.14.0a2/Lib/test/test___all__.py", line 129, in test_all self.check_all(modname) ~~~~~~~~~~~~~~^^^^^^^^^ File "/home/abuild/rpmbuild/BUILD/Python-3.14.0a2/Lib/test/test___all__.py", line 35, in check_all with warnings_helper.check_warnings( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ (f".*{modname}", DeprecationWarning), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ("", ResourceWarning), ^^^^^^^^^^^^^^^^^^^^^^ quiet=True): ^^^^^^^^^^^ File "/home/abuild/rpmbuild/BUILD/Python-3.14.0a2/Lib/contextlib.py", line 148, in __exit__ next(self.gen) ~~~~^^^^^^^^^^ File "/home/abuild/rpmbuild/BUILD/Python-3.14.0a2/Lib/test/support/warnings_helper.py", line 185, in _filterwarnings raise AssertionError("unhandled warning %s" % reraise[0]) AssertionError: unhandled warning{message : BytesWarning('str() on a bytes instance'), category : 'BytesWarning', filename : '/home/abuild/rpmbuild/BUILD/Python-3.14.0a2/Lib/test/support/strace_helper.py', lineno : 85, line : None} ---------------------------------------------------------------------- 

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs 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