] > Re: [Python-projects] invoking pylint on __init__.py (Logilab.org)

Email Re: [Python-projects] invoking pylint on __init__.py

to
subject
Re: [Python-projects] invoking pylint on __init__.py
date
2005/11/08 09:37
Re: [Python-projects] invoking pylint on __init__.py

Hello Sylvain,

> In this case take a look at pylint/test/regrtest.py,
> which implements a test case trying to reproduce your problem.

On windows, the 4 tests fails:

FFFF
======================================================================
FAIL: test_check_package___init__ (__main__.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\Lib\site-packages\pylint\test\regrtest.py", line 60, in
test_check_package___init__
    '%s: %s' % (variation, checked))
  File "C:\python\lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: regrtest_data/package/__init__.py:
['regrtest_data/package/__init__.py']

======================================================================
FAIL: test_numarray_import (__main__.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\Lib\site-packages\pylint\test\regrtest.py", line 83, in
test_numarray_import
    self.failUnlessEqual(got, '')
  File "C:\python\lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: 'F:  0: No module named regrtest_data/numarray_import' !
= ''

======================================================================
FAIL: test_package___init___precedence (__main__.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\Lib\site-packages\pylint\test\regrtest.py", line 52, in
test_package___init___precedence
    self.failUnlessEqual(got, '')
  File "C:\python\lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: 'F:  0: No module named precedence_test' != ''

======================================================================
FAIL: test_package___path___manipulation (__main__.NonRegrTC)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\Lib\site-packages\pylint\test\regrtest.py", line 47, in
test_package___path___manipulation
    self.failUnlessEqual(got, '')
  File "C:\python\lib\unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: 'F:  0: No module named package' != ''

----------------------------------------------------------------------
Ran 4 tests in 0.172s

FAILED (failures=4)

--
Amaury Forgeot d'Arc
Ubix Development
www.ubitrade.com