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 martin.panter
Recipients Spencer Brown, benjamin.peterson, ellingtonjp, martin.panter, ncoghlan, ned.deily, python-dev, rhettinger, serhiy.storchaka, xiang.zhang, yselivanov
Date 2016-11-24.04:13:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479960780.76.0.11734070071.issue27100@psf.upfronthosting.co.za>
In-reply-to
Content
The tests changes also produce a DeprecationWarning:

======================================================================
ERROR: testEnterAttributeError1 (test.test_with.FailureTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/proj/python/cpython/Lib/test/test_with.py", line 120, in testEnterAttributeError1
    self.assertRaisesRegexp(AttributeError, '__enter__', fooLacksEnter)
  File "/home/proj/python/cpython/Lib/unittest/case.py", line 1311, in deprecated_func
    DeprecationWarning, 2)
DeprecationWarning: Please use assertRaisesRegex instead.

The fix is simple and just affects the tests, but since most people don’t seem to worry about warnings, I guess this can wait for 3.6 to be released before committing the fix.
History
Date User Action Args
2016-11-24 04:13:00martin.pantersetrecipients: + martin.panter, rhettinger, ncoghlan, benjamin.peterson, ned.deily, python-dev, serhiy.storchaka, yselivanov, xiang.zhang, Spencer Brown, ellingtonjp
2016-11-24 04:13:00martin.pantersetmessageid: <1479960780.76.0.11734070071.issue27100@psf.upfronthosting.co.za>
2016-11-24 04:13:00martin.panterlinkissue27100 messages
2016-11-24 04:13:00martin.pantercreate