dev-python/logilab-common-0.45.1 doesn't work with Python 2.7. It tries to use private unittest._TextTestResult which has been removed. $ pytest Traceback (most recent call last): File "/usr/bin/pytest", line 3, in <module> from logilab.common.pytest import run File "/usr/lib64/python2.7/site-packages/logilab/common/pytest.py", line 114, in <module> from logilab.common import testlib File "/usr/lib64/python2.7/site-packages/logilab/common/testlib.py", line 237, in <module> class SkipAwareTestResult(unittest._TextTestResult): AttributeError: 'module' object has no attribute '_TextTestResult'
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.