This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2018-06-20.09:59:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529488764.99.0.56676864532.issue33912@psf.upfronthosting.co.za>
In-reply-to
Content
vstinner@apu$ ./python -W error -m test -v test_warnings

======================================================================
ERROR: test_exec_filename (test.test_warnings.CWarnTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/prog/python/master/Lib/test/test_warnings/__init__.py", line 450, in test_exec_filename
    exec(codeobj)
  File "<warnings-test>", line 2, in <module>
UserWarning: hello

======================================================================
ERROR: test_exec_filename (test.test_warnings.PyWarnTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/prog/python/master/Lib/test/test_warnings/__init__.py", line 450, in test_exec_filename
    exec(codeobj)
  File "<warnings-test>", line 2, in <module>
  File "/home/vstinner/prog/python/master/Lib/warnings.py", line 318, in warn
    globals, source)
  File "/home/vstinner/prog/python/master/Lib/warnings.py", line 363, in warn_explicit
    raise message
UserWarning: hello


It seems to be a regression introduced by bpo-33375: commit 11a896652ee98aa44e59ed25237f9efb56635dcf.
History
Date User Action Args
2018-06-20 09:59:25vstinnersetrecipients: + vstinner
2018-06-20 09:59:24vstinnersetmessageid: <1529488764.99.0.56676864532.issue33912@psf.upfronthosting.co.za>
2018-06-20 09:59:24vstinnerlinkissue33912 messages
2018-06-20 09:59:24vstinnercreate