[issue23027] test_warnings fails with -Werror
Serhiy Storchaka
report at bugs.python.org
Wed Dec 10 22:51:35 CET 2014
New submission from Serhiy Storchaka:
$ ./python -Werror -m test.regrtest -v test_warnings
...
======================================================================
ERROR: test_warning_classes (test.test_warnings.CWarnTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_warnings.py", line 460, in test_warning_classes
self.module.warn('good warning category', MyWarningClass)
test.test_warnings.WarnTests.test_warning_classes.<locals>.MyWarningClass: good warning category
======================================================================
ERROR: test_warning_classes (test.test_warnings.PyWarnTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_warnings.py", line 460, in test_warning_classes
self.module.warn('good warning category', MyWarningClass)
File "/home/serhiy/py/cpython/Lib/warnings.py", line 204, in warn
globals)
File "/home/serhiy/py/cpython/Lib/warnings.py", line 249, in warn_explicit
raise message
test.test_warnings.WarnTests.test_warning_classes.<locals>.MyWarningClass: good warning category
----------------------------------------------------------------------
This is 3.x only issue.
----------
components: Tests
messages: 232446
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_warnings fails with -Werror
type: behavior
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23027>
_______________________________________
More information about the Python-bugs-list
mailing list