-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
./python.exe -Werror -m test test_warnings fails, which feels sort-of ironic:
~/dev/cpython (main)⚡ % ./python.exe -We -m test test_warnings
Using random seed: 673638140
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 2.83 Run 1 test sequentially in a single process
0:00:00 load avg: 2.83 [1/1] test_warnings
test test_warnings failed -- Traceback (most recent call last):
File "/Users/alexw/dev/cpython/Lib/test/test_warnings/__init__.py", line 904, in test_issue31285
wmod.warn_explicit(
~~~~~~~~~~~~~~~~~~^
'foo', UserWarning, 'bar', 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
module_globals={'__loader__': get_bad_loader(42),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'__name__': 'foobar'})
^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 934, in _bless_my_loader
DeprecationWarning: Module globals is missing a __spec__.loader
test_warnings failed (1 error)
== Tests result: FAILURE ==
1 test failed:
test_warnings
Total duration: 482 ms
Total tests: run=146
Total test files: run=1/1 failed=1
Result: FAILURECPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error