gh-128770: raise warnings as errors in test suite - except for test_socket which still logs warnings, and internal test warnings that are now logged#128973
Conversation
…cept for test_socket which still logs warnings (python#128726)" (python#128936) This reverts commit 76856ae.
|
@hugovk can I get a run on the buildbots for this PR? |
|
Certainly! Let's check if you can do it yourself: either apply one of the |
|
🤖 New build scheduled with the buildbot fleet by @graingert for commit c06c3db 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
🤖 New build scheduled with the buildbot fleet by @graingert for commit 7123093 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
|
@hugovk do you know where I can see the status? |
|
The warnings have been fixed in other PRs in |
|
Thanks @graingert for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
|
Sorry, @graingert and @hugovk, I could not cleanly backport this to |
|
Sorry, @graingert and @hugovk, I could not cleanly backport this to |
|
GH-131802 is a backport of this pull request to the 3.13 branch. |
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> (cherry picked from commit 8a00c9a)
|
|
the failure is related to this commit, however the code in this PR is working as intended. This has uncovered an issue in subinterpreters: test_create_many_threaded (test.test_interpreters.test_stress.StressTests.test_create_many_threaded) ... Warning -- Uncaught thread exception: InterpreterError
Exception in thread Thread-166 (task):
RuntimeError: Failed to import encodings module
During handling of the above exception, another exception occurred:
interpreters.InterpreterError: sub-interpreter creation failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line 1054, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line 996, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/test_interpreters/test_stress.py", line 30, in task
interp = interpreters.create()
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/support/interpreters/__init__.py", line 76, in create
id = _interpreters.create(reqrefs=True)
interpreters.InterpreterError: interpreter creation failed |
|
That's a known failure, don't worry about it. |
|
Ah you're right it's not a Warning that got raised as an Exception! I panicked like the message said not to |
|
GH-131824 is a backport of this pull request to the 3.12 branch. |
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>




Uh oh!
There was an error while loading. Please reload this page.