Message281602
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. |
|
Date |
User |
Action |
Args |
2016-11-24 04:13:00 | martin.panter | set | recipients:
+ martin.panter, rhettinger, ncoghlan, benjamin.peterson, ned.deily, python-dev, serhiy.storchaka, yselivanov, xiang.zhang, Spencer Brown, ellingtonjp |
2016-11-24 04:13:00 | martin.panter | set | messageid: <1479960780.76.0.11734070071.issue27100@psf.upfronthosting.co.za> |
2016-11-24 04:13:00 | martin.panter | link | issue27100 messages |
2016-11-24 04:13:00 | martin.panter | create | |
|