◐ Shell
clean mode source ↗

Message 318564 - Python tracker

This test is failed with -We.

$ ./python -We -m test -v test_warnings
...
======================================================================
ERROR: test_module_globals (test.test_warnings.CFilterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals
    module_globals=None)
UserWarning: msg

======================================================================
ERROR: test_module_globals (test.test_warnings.PyFilterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_warnings/__init__.py", line 226, in test_module_globals
    module_globals=None)
  File "/home/serhiy/py/cpython/Lib/warnings.py", line 375, in warn_explicit
    raise message
UserWarning: msg

----------------------------------------------------------------------