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 Arfrever
Recipients Arfrever, eli.bendersky, ezio.melotti, serhiy.storchaka
Date 2017-04-09.19:36:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491766618.38.0.276477637378.issue30027@psf.upfronthosting.co.za>
In-reply-to
Content
test_xml_etree.py and test_xml_etree_c.py on 2.7 branch fail since this commit:

commit 68903b656d4e1011525a46cbd1338c6cbab83d6d
Author: Serhiy Storchaka <storchaka@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
History
Date User Action Args
2017-04-09 19:36:58Arfreversetrecipients: + Arfrever, ezio.melotti, eli.bendersky, serhiy.storchaka
2017-04-09 19:36:58Arfreversetmessageid: <1491766618.38.0.276477637378.issue30027@psf.upfronthosting.co.za>
2017-04-09 19:36:58Arfreverlinkissue30027 messages
2017-04-09 19:36:57Arfrevercreate