New submission from Arfrever Frehtes Taifersar Arahesis: test_xml_etree.py and test_xml_etree_c.py on 2.7 branch fail since this commit:
commit 68903b656d4e1011525a46cbd1338c6cbab83d6d Author: Serhiy Storchaka <storch...@gmail.com> Date: Sun Apr 2 16:55:43 2017 +0300 bpo-15083: Convert ElementTree doctests to unittests. (#906) Output of test suite: [388/399] test_xdrlib [389/399] test_xml_etree /tmp/cpython/Lib/test/test_xml_etree.py:1674: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class MutatingElementPath(str): /tmp/cpython/Lib/test/test_xml_etree.py:1684: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class BadElementPath(str): test test_xml_etree crashed -- <type 'exceptions.AssertionError'>: unhandled warning DeprecationWarning('Overriding __eq__ blocks inheritance of __hash__ in 3.x',) [390/399/1] test_xml_etree_c test test_xml_etree_c crashed -- <type 'exceptions.AssertionError'>: unhandled warning DeprecationWarning('classic int division',) [391/399/2] test_xmllib ... 360 tests OK. 2 tests failed: test_xml_etree test_xml_etree_c Re-running failed tests in verbose mode Re-running test 'test_xml_etree' in verbose mode /tmp/cpython/Lib/test/test_xml_etree.py:1674: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class MutatingElementPath(str): /tmp/cpython/Lib/test/test_xml_etree.py:1684: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class BadElementPath(str): ... Ran 117 tests in 0.934s OK test test_xml_etree crashed -- <type 'exceptions.AssertionError'>: unhandled warning DeprecationWarning('Overriding __eq__ blocks inheritance of __hash__ in 3.x',) Traceback (most recent call last): File "./Lib/test/regrtest.py", line 989, in runtest_inner File "/tmp/cpython/Lib/test/test_xml_etree.py", line 2671, in test_main support.run_unittest(*test_classes) File "/tmp/cpython/Lib/test/test_xml_etree.py", line 2630, in __exit__ self.checkwarnings.__exit__(*args) File "/tmp/cpython/Lib/contextlib.py", line 24, in __exit__ self.gen.next() File "/tmp/cpython/Lib/test/test_support.py", line 905, in _filterwarnings raise AssertionError("unhandled warning %r" % reraise[0]) AssertionError: unhandled warning DeprecationWarning('Overriding __eq__ blocks inheritance of __hash__ in 3.x',) Re-running test 'test_xml_etree_c' in verbose mode ... Ran 118 tests in 0.112s OK (skipped=19) test test_xml_etree_c crashed -- <type 'exceptions.AssertionError'>: unhandled warning DeprecationWarning('classic int division',) Traceback (most recent call last): File "./Lib/test/regrtest.py", line 989, in runtest_inner File "/tmp/cpython/Lib/test/test_xml_etree_c.py", line 64, in test_main test_xml_etree.test_main(module=cET) File "/tmp/cpython/Lib/test/test_xml_etree.py", line 2671, in test_main support.run_unittest(*test_classes) File "/tmp/cpython/Lib/test/test_xml_etree.py", line 2630, in __exit__ self.checkwarnings.__exit__(*args) File "/tmp/cpython/Lib/contextlib.py", line 24, in __exit__ self.gen.next() File "/tmp/cpython/Lib/test/test_support.py", line 905, in _filterwarnings raise AssertionError("unhandled warning %r" % reraise[0]) AssertionError: unhandled warning DeprecationWarning('classic int division',) 2 tests failed again: test_xml_etree test_xml_etree_c ---------- assignee: serhiy.storchaka components: Tests messages: 291392 nosy: Arfrever, eli.bendersky, ezio.melotti, serhiy.storchaka priority: normal severity: normal status: open title: test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30027> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com