[Python-projects] pylint-0.13.0 failing tests
Daniel Drake
ddrake at brontes3d.com
Thu Mar 1 17:58:09 CET 2007
pylint-0.12.2 succeeded with all tests. 0.13.0 has some failures:
FAIL: test_functionality (func_test.LintTestUsingModuleTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 781, in _proceed
testfunc(*args, **kwargs)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/func_test.py", line 67, in test_functionality
self._test(tocheck)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/func_test.py", line 90, in _test
self.assertLinesEquals(got, expected)
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 858, in assertLinesEquals
self.assertListEquals(l1.splitlines(), l2.splitlines())
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 847, in assertListEquals
self.fail('%r != %r for index %d' % (_l1[0], value, i))
AssertionError: func_interfaces: 'F: 77:InterfaceCantBeFound: failed to
resolve interfaces implemented by InterfaceCantBeFound (undefined)' !=
"E: 88:InterfaceCanNowBeFound: Missing method 'troc' from IMachin
interface" for index 2
======================================================================
FAIL: test_functionality (func_test.LintTestUsingFileTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 781, in _proceed
testfunc(*args, **kwargs)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/func_test.py", line 103, in test_functionality
self._test(tocheck)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/func_test.py", line 90, in _test
self.assertLinesEquals(got, expected)
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 858, in assertLinesEquals
self.assertListEquals(l1.splitlines(), l2.splitlines())
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 847, in assertListEquals
self.fail('%r != %r for index %d' % (_l1[0], value, i))
AssertionError: func_interfaces: 'F: 77:InterfaceCantBeFound: failed to
resolve interfaces implemented by InterfaceCantBeFound (undefined)' !=
"E: 88:InterfaceCanNowBeFound: Missing method 'troc' from IMachin
interface" for index 2
======================================================================
FAIL: test (func_test.TestTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/func_test.py", line 120, in test
self.assertEqual(todo, ['E0503', 'I0001'])
AssertionError: ['E0104', 'E0105', 'E0106', 'E0503', 'I0001', 'I0013',
'W0107', 'W0614'] != ['E0503', 'I0001']
======================================================================
FAIL: test_decimal_inference (regrtest.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 781, in _proceed
testfunc(*args, **kwargs)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/regrtest.py", line 131, in test_decimal_inference
self.failUnlessEqual(got, "")
AssertionError: "E: 9: Instance of 'Context' has no 'prec' member (but
some types could not be inferred)" != ''
======================================================================
FAIL: test_numarray_inference (regrtest.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/logilab/common/testlib.py",
line 781, in _proceed
testfunc(*args, **kwargs)
File
"/var/tmp/portage/dev-python/pylint-0.13.0/temp/test/lib/python/pylint/test/regrtest.py", line 97, in test_numarray_inference
self.failUnlessEqual(got, "E: 5: Instance of 'int' has no 'astype'
member (but some types could not be inferred)")
AssertionError: 'F: 1: No module named regrtest_data/numarray_inf' !=
"E: 5: Instance of 'int' has no 'astype' member (but some types could
not be inferred)"
----------------------------------------------------------------------
--
Daniel Drake
Brontes Technologies, A 3M Company
More information about the Python-Projects
mailing list