Martin Panter added the comment:
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.
----------
Added file: http://bugs.python.org/file45618/regexp-deprecated.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com