-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.11.5 test_httpservers fails on unhandled DeprecationWarning ("invalid escape sequence '\\?'") #108569
Comments
The f-string was turned into a raw f-string for
@pablogsal @AlexWaygood Shall we backport it to 3.11? |
That makes sense to me; the change is very low-risk 👍 @dvzrv, are you running your tests with |
Let's do the backport! 👍 Also let's investigate as well why we are didn't experience this in our own Ci. 🤔 |
I triggered the backport, and I've enabled automerge: |
Not that I am aware of (definitely not explicitly). Rebuilding with the patch applied now to see where this leads and will report back. Thanks for the super quick responses here! |
Building with #108576 applied on top of 3.11.5 fixes the issue for us. Thank you! :) |
Because we're no longer running Here's the last build before the backport (33eee43): https://github.com/python/cpython/actions/runs/6000276301/job/16272033246 Checking out 33eee43 locally, building and running the test fails: ❯ ./python.exe ./Lib/test/test___all__.py
__hello__
__phello__
__phello__.ham
...
test.test_http_cookies
test.test_httplib
test.test_httpservers
F
======================================================================
FAIL: test_all (__main__.AllTest.test_all)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/hugo/github/cpython/./Lib/test/test___all__.py", line 129, in test_all
self.check_all(modname)
File "/Users/hugo/github/cpython/./Lib/test/test___all__.py", line 43, in check_all
with warnings_helper.check_warnings(
File "/Users/hugo/github/cpython/Lib/contextlib.py", line 144, in __exit__
next(self.gen)
File "/Users/hugo/github/cpython/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 : '/Users/hugo/github/cpython/Lib/test/test_httpservers.py', lineno : 445, line : None}
----------------------------------------------------------------------
Ran 1 test in 1.284s
FAILED (failures=1) (Note: running it a second time passes, some intermediary files need to be deleted first.)
|
Bug report
Checklist
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:
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
The text was updated successfully, but these errors were encountered: