Summary: | dev-python/logilab-common-0.53.0 fails tests with Python 2.7 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | flameeyes |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://lists.logilab.org/pipermail/python-projects/2010-September/002653.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 292401 |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2009-11-21 02:13:44 UTC
Deprecated unittest._TextTestResult has been restored in Python 2.7, but tests now fail due to usage of private unittest.TestCase._exc_info. dev-python/logilab-common-0.51.1 uses my patch, which fixes majority of test failures. Usage of SkipAwareTestResult might also need to be improved. *** Bug 327799 has been marked as a duplicate of this bug. *** dev-python/logilab-common-0.52.0 has introduced additional test failures with Python 2.7. Using logilab-common-0.53 (not in tree yet), only one test fails: test_xml_valid (unittest_testlib.TestlibTC) tests xml is valid ... unhandled exception occurred while testing unittest_testlib Traceback (most recent call last): ... AttributeError: 'MockTestCase' object has no attribute '_testMethodName' It doesn't seem to be related to python-2.7. The unit test calls assertXMLStringWellFormed() in testlib.py, which calls _assertETXMLWellFormed() with xml.etree.ElementTree.fromstring. The latter is expected to fail on invalid xml, and it does with xml.etree.ElementTree.ParseError. But only xml.parsers.expat.ExpatError is handled. (In reply to comment #5) Please send your suggestions to python-projects@lists.logilab.org mailing list. Fixed in dev-python/logilab-common-0.54.0. |