Email Re: [Python-projects] PyLint-0.3.3

from
Colin J. Williams <cjw at sympatico dot ca>
to
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] PyLint-0.3.3
date
2004/02/23 13:52
Sylvain,

Here is the output of my test run, on a Windows XP.

Colin W.

PythonWin 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further copyright information.
>>>
--------------------------------------------------------------------------------
Executing func_test
..............F............F.........................................
======================================================================
FAIL: test_functionality (func_test.LintTestSubclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\func_test.py", line 50, in test_functionality
    self.assertEqual(got, expected, '%s:\n%r != %r' %
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: func_format:
'W:  6: Operator not preceded by a space\nnotpreceded= 1\n\r\n           ^\nW:  7: Operator not followed by a space\nnotfollowed =1\n\r\n            ^\nW:  8: Operator not followed by a space\nnotfollowed <=1\n\r\n            ^^\nW: 19: Comma not followed by a space\naaaa,bbbb = 1,2\n\r\n    ^^\nW: 24: More than one statement on a single line\nW: 26: Comma not followed by a space\n    aaaa,bbbb = 1,2\n\r\n        ^^\nW: 27: Comma not followed by a space\n    aaaa,bbbb = bbbb,aaaa\n\r\n        ^^\nW: 29: Comma not followed by a space\nbbbb = (1,2,3)\n\r\n         ^^' != 'W:  6: Operator not preceded by a space\nnotpreceded= 1\n           ^\nW:  7: Operator not followed by a space\nnotfollowed =1\n            ^\nW:  8: Operator not followed by a space\nnotfollowed <=1\n            ^^\nW: 19: Comma not followed by a space\naaaa,bbbb = 1,2\n    ^^\nW: 24: More than one statement on a single line\nW: 26: Comma not followed by a space\n    aaaa,bbbb = 1,2\n        ^^\nW: 27: Comma not followed by a space\n    aaaa,bbbb = bbbb,aaaa\n        ^^\nW: 29: Comma not followed by a space\nbbbb = (1,2,3)\n         ^^'

======================================================================
FAIL: test_functionality (func_test.LintTestSubclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\func_test.py", line 50, in test_functionality
    self.assertEqual(got, expected, '%s:\n%r != %r' %
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: func_toolonglines:
'W:  1: Line too long (91/80)\nW:  2: Line too long (95/80)' != 'W:  1: Line too long (90/80)\nW:  2: Line too long (94/80)'

----------------------------------------------------------------------
Ran 69 tests in 2.023s

FAILED (failures=2)

--------------------------------------------------------------------------------
Executing func_test_sample_config
..............F............F.........................................
======================================================================
FAIL: test_functionality (func_test.LintTestSubclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\func_test.py", line 50, in test_functionality
    self.assertEqual(got, expected, '%s:\n%r != %r' %
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: func_format:
'W:  6: Operator not preceded by a space\nnotpreceded= 1\n\r\n           ^\nW:  7: Operator not followed by a space\nnotfollowed =1\n\r\n            ^\nW:  8: Operator not followed by a space\nnotfollowed <=1\n\r\n            ^^\nW: 19: Comma not followed by a space\naaaa,bbbb = 1,2\n\r\n    ^^\nW: 24: More than one statement on a single line\nW: 26: Comma not followed by a space\n    aaaa,bbbb = 1,2\n\r\n        ^^\nW: 27: Comma not followed by a space\n    aaaa,bbbb = bbbb,aaaa\n\r\n        ^^\nW: 29: Comma not followed by a space\nbbbb = (1,2,3)\n\r\n         ^^' != 'W:  6: Operator not preceded by a space\nnotpreceded= 1\n           ^\nW:  7: Operator not followed by a space\nnotfollowed =1\n            ^\nW:  8: Operator not followed by a space\nnotfollowed <=1\n            ^^\nW: 19: Comma not followed by a space\naaaa,bbbb = 1,2\n    ^^\nW: 24: More than one statement on a single line\nW: 26: Comma not followed by a space\n    aaaa,bbbb = 1,2\n        ^^\nW: 27: Comma not followed by a space\n    aaaa,bbbb = bbbb,aaaa\n        ^^\nW: 29: Comma not followed by a space\nbbbb = (1,2,3)\n         ^^'

======================================================================
FAIL: test_functionality (func_test.LintTestSubclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\func_test.py", line 50, in test_functionality
    self.assertEqual(got, expected, '%s:\n%r != %r' %
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: func_toolonglines:
'W:  1: Line too long (91/80)\nW:  2: Line too long (95/80)' != 'W:  1: Line too long (90/80)\nW:  2: Line too long (94/80)'

----------------------------------------------------------------------
Ran 69 tests in 1.011s

FAILED (failures=2)

--------------------------------------------------------------------------------
Executing smoketest
.
----------------------------------------------------------------------
Ran 1 test in 2.513s

OK

--------------------------------------------------------------------------------
Executing test_encoding
...
----------------------------------------------------------------------
Ran 3 tests in 0.010s

OK

--------------------------------------------------------------------------------
Executing test_format
FF.FFFF............
======================================================================
FAIL: test_known_values_all_1 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 132, in test_known_values_all_1
    ('W0324', "self.filterFunc = eval('lambda %s: %s'%(','.join(variables),formula),{},{})\n                                                           ^^"))
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0324', "self.filterFunc = eval('lambda %s: %s'%(','.join(variables),formula),{},{})\r\n                                                           ^^") != ('W0324', "self.filterFunc = eval('lambda %s: %s'%(','.join(variables),formula),{},{})\n                                                           ^^")

======================================================================
FAIL: test_known_values_commaspace_1 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 120, in test_known_values_commaspace_1
    ('W0324', 'a, b = 1,2\n        ^^'))
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0324', 'a, b = 1,2\r\n        ^^') != ('W0324', 'a, b = 1,2\n        ^^')

======================================================================
FAIL: test_known_values_instring_2 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 128, in test_known_values_instring_2
    ('W0323', 'print >>1, ("a:1")\n       ^'))
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0323', 'print >>1, ("a:1")\r\n       ^') != ('W0323', 'print >>1, ("a:1")\n       ^')

======================================================================
FAIL: test_known_values_opspace_1 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 73, in test_known_values_opspace_1
    self.assertEqual(check_line('a=1', REPORTER), ('W0322', 'a=1\n ^'))
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0322', 'a=1\r\n ^') != ('W0322', 'a=1\n ^')

======================================================================
FAIL: test_known_values_opspace_2 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 76, in test_known_values_opspace_2
    self.assertEqual(check_line('a= 1', REPORTER), ('W0322', 'a= 1\n ^') )
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0322', 'a= 1\r\n ^') != ('W0322', 'a= 1\n ^')

======================================================================
FAIL: test_known_values_opspace_3 (test_format.ChecklineFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\test_format.py", line 79, in test_known_values_opspace_3
    self.assertEqual(check_line('a =1', REPORTER), ('W0323', 'a =1\n  ^'))
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: ('W0323', 'a =1\r\n  ^') != ('W0323', 'a =1\n  ^')

----------------------------------------------------------------------
Ran 19 tests in 0.020s

FAILED (failures=6)

--------------------------------------------------------------------------------
Executing unittest_misc
FF
======================================================================
FAIL: test_known_values_1 (unittest_misc.PrettymatchFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\unittest_misc.py", line 33, in test_known_values_1
    ^^''')
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: 'toto\r\n^^' != 'toto\n^^'

======================================================================
FAIL: test_known_values_2 (unittest_misc.PrettymatchFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\logilab\pylint\test\unittest_misc.py", line 44, in test_known_values_2
    ... ... ''')
  File "C:\Python23\Lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: '\n... ... to to\n... ... \r\n         ^^' != '\n... ... to to\n        ^^\n... ... '

----------------------------------------------------------------------
Ran 2 tests in 0.000s

FAILED (failures=2)
********************************************************************************
Ran 163 test cases , 12 failed
2 tests OK.
4 tests failed: func_test, func_test_sample_config, test_format, unittest_misc


Sylvain Thénault wrote:
On Sunday 22 February à 10:04, Colin J. Williams wrote:
  
I have just downloaded and installed 0.3.3.  With runtests.py, I get 
some Ok's and a number of error indications.  I haven't delved into the 
tests, but wonder whether this is expected.

If not, I would be glad to forward the output file.
    

please do

  

is a reply to
has reply