Berker Peksag added the comment:
Thanks for the review, Giampaolo.
Attached a new patch which fixes text_logging and test_doctest tests.
However, this patch will broke the current behavior of
test.support.check_warnings. See Lib/test/test_xml_etree.py for example:
test test_xml_etree crashed -- Traceback (most recent call last):
File "/home/berker/projects/cpython-default/Lib/test/regrtest.py", line 1278,
in runtest_inner
test_runner()
File "/home/berker/projects/cpython-default/Lib/test/test_xml_etree.py", line
2580, in test_main
support.run_unittest(*test_classes)
File "/home/berker/projects/cpython-default/Lib/test/test_xml_etree.py", line
2537, in __exit__
self.checkwarnings.__exit__(*args)
File "/home/berker/projects/cpython-default/Lib/contextlib.py", line 66, in
__exit__
next(self.gen)
File "/home/berker/projects/cpython-default/Lib/test/support/__init__.py",
line 1081, in _filterwarnings
missing[0])
AssertionError: filter ("This search is broken in 1.3 and earlier, and will be
fixed in a future version. If you rely on the current behaviour, change it to
'.+'", FutureWarning) did not catch any warning
----------
Added file: http://bugs.python.org/file35487/issue18381_v2.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com