GeezerVison is showing github.com — test_array modifies `warnings.filter` · Issue #106162 · python/cpython
test_array modifies warnings.filter #106162Description$ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error
0:00:00 load avg: 17.75 Run tests sequentially
0:00:00 load avg: 17.75 [1/1] test_array
Warning -- warnings.filters was modified by test_array
Warning -- Before: (140159909806320, [], [])
Warning -- After: (140159909806320, [], [('ignore', re.compile("The 'u' type code is deprecated and will be removed in Python 3.16", re.IGNORECASE), <class 'DeprecationWarning'>, None, 0)])
test_array failed (env changed)
== Tests result: ENV CHANGED ==
1 test altered the execution environment:
test_array
Total duration: 321 ms
Tests result: ENV CHANGED
cc @methane @hugovk
Linked PRs
Activityhugovk commented on Jun 28, 2023 I can't reproduce on macOS.
Does the filterwarnings in setUp not work?
|
def setUp(self): |
|
warnings.filterwarnings( |
|
"ignore", |
|
message="The 'u' type code is deprecated and " |
|
"will be removed in Python 3.16", |
|
category=DeprecationWarning) |
changed the title [-]test_array emits DeprecationWarning: The 'u' type code is deprecated and will be removed in Python 3.16[/-] [+]test_array modifies `warnigns.filter`[/+] on Jun 28, 2023changed the title [-]test_array modifies `warnigns.filter`[/-] [+]test_array modifies `warnings.filter`[/+] on Jun 28, 2023
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|