Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

3.11.5 test_httpservers fails on unhandled DeprecationWarning ("invalid escape sequence '\\?'") #108569

Copy link
Copy link
@dvzrv

Description

@dvzrv
Issue body actions

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker,
    and am confident this bug has not been reported before

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.11.3 (main, Jun 5 2023, 09:32:32) [GCC 13.1.1 20230429]

A clear and concise description of the bug:

Hi! When attempting to upgrade the python package for Arch Linux to 3.11.5 I ran into the following test issue:

[..]
test.test_httpservers
FAIL

======================================================================
FAIL: test_all (test.test___all__.AllTest.test_all)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python/src/Python-3.11.5/Lib/test/test___all__.py", line 129, in test_all
    self.check_all(modname)
  File "/build/python/src/Python-3.11.5/Lib/test/test___all__.py", line 43, in check_all
    with warnings_helper.check_warnings(
  File "/build/python/src/Python-3.11.5/Lib/contextlib.py", line 144, in __exit__
    next(self.gen)
  File "/build/python/src/Python-3.11.5/Lib/test/support/warnings_helper.py", line 185, in _filterwarnings
    raise AssertionError("unhandled warning %s" % reraise[0])
AssertionError: unhandled warning {message : DeprecationWarning("invalid escape sequence '\\?'"), category : 'DeprecationWarning', filename : '/build/python/src/Python-3.11.5/Lib/test/test_httpservers.py', lineno : 445, line : None}

----------------------------------------------------------------------
Ran 1 test in 0.621s

FAILED (failures=1)
test test___all__ failed
0:00:05 load avg: 3.34 [ 12/432/1] test___future__ -- test___all__ failed (1 failure)
test_attributes (test.test___future__.FutureTest.test_attributes) ... ok
test_names (test.test___future__.FutureTest.test_names) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.000s
[..]

Full build and check logs:
python-3.11.5-1-x86_64-build.log
python-3.11.5-1-x86_64-check.log

Build script for the package: https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/blob/main/PKGBUILD

cc @felixonmars

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtopic-parsertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.