[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 65c5b096ac2c6608d296f1603cd4792086108c95 by Serhiy Storchaka in 
branch '2.7':
bpo-30027: Fix Py3k warnings in test_xml_etree. (#1065)
https://github.com/python/cpython/commit/65c5b096ac2c6608d296f1603cd4792086108c95


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1211

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-09 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

To reproduce problem when running only these 2 files, use e.g.:
python2.7 -3 -m test.test_xml_etree
python2.7 -3 -m test.test_xml_etree_c

For full test suite, this -3 option is set in Makefile:
TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, I ran tests with -Wa and -We, but forgot to run with -3. Thank you for 
noticing this Arfrever!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30027] test_xml_etree and test_xml_etree_c fail due to AssertionError: unhandled warning DeprecationWarning

2017-04-09 Thread Arfrever Frehtes Taifersar Arahesis

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 
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 -- : 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 -- : 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 -- : 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 -- : 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com