Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2014-12-10.21:51:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418248295.01.0.00165630152899.issue23027@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./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.
History
Date User Action Args
2014-12-10 21:51:35serhiy.storchakasetrecipients: + serhiy.storchaka
2014-12-10 21:51:35serhiy.storchakasetmessageid: <1418248295.01.0.00165630152899.issue23027@psf.upfronthosting.co.za>
2014-12-10 21:51:34serhiy.storchakalinkissue23027 messages
2014-12-10 21:51:34serhiy.storchakacreate