[Python-projects] pylint-0.13.1 (minor) test issues

Marien Zwart marienz at gentoo.org
Fri Mar 2 23:33:44 CET 2007


Hi,

Thanks for the 0.13.1 tarball. Running the tests before bumping
gentoo's ebuild I ran into a few minor problems, most of them in the
tests, not pylint itself.

Everything is with pylint 0.13.1, astng 0.17.0, common 0.21.2.

setup.py does not install the test/rpythonmessages dir. Adding it to
include_dirs in __pkginfo__.py fixes this. Obviously not a big deal
since I do not think many users will want to install and then run the
tests on the installed version, but since test/messages *is* installed
it would be nice to be consistent here.

The rpythoninput/func_unsupported_protocol.py test fails: the line
"I0011: 1: Locally disabling E1202" is not printed. Have not figured
out why.

The test_checker_dep_graphs in test_import_graph fails. I think this
is because the environment I run the tests in differs from yours: in
checkers.imports.ImportsChecker.report_dependencies_graph
self.stats['dependencies'] is an empty dict, and if I change the test
to call l.check('pylint') instead of l.check('input') the test passes.
So it looks like the "input" it is running pylint on has no external
deps, causing it to skip the dotfile generation.

Finally a problem in pylint itself instead of the tests: "pylint
--rpython-mode test/rpythoninput/func_unsupported_protocol.py" prints
the usage info, as if I had typed pylint with no arguments.
preprocess_options removes the argument after rpython-mode from argv
and passes it to cb_rpython_mode as "value", which ignores it. "pylint
--rpython-mode please test/rpythoninput/func_unsupported_protocol.py"
works :)

(before I forget: there is no need to keep runtests.py or something
like it around just for gentoo's ebuild. I will just adapt the ebuild
if the preferred test runner changes. Would like to keep running the
tests from the ebuild to catch any obvious mistakes though.)

-- 
Marien.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20070302/1d2c1314/attachment.pgp 


More information about the Python-Projects mailing list