[code-quality] pylint unit tests?
Skip Montanaro
skip at pobox.com
Thu Jul 4 14:38:26 CEST 2013
> * Are you sure that PYTHONPATH is set properly so that your checkout of pylint
> is used to run the test? The second trace you provide tends to make me think
> there is a problem here.
PYTHONPATH is unset. I don't recall seeing any instructions about
setting it in contribute.rst. I have been installing pylint. The
fulltest.sh script runs a command called pytest though, which appears
to only materialize as part of the install process:
pylint% pwd
/Users/skip/src/pylint
pylint% find . -name 'pytest*' | wc -l
0
pylint% type pytest
pytest is /Users/skip/local/bin/pytest
How should PYTHONPATH be set? How would I get a pytest command in my checkout?
> * You probably need to be on the tip of checkout of astroid [1], and maybe of
> logilab.common [2] as well (though I think there are only python3 related fixes
> there)
Yes, both are fully up-to-date and installed
> Regarding your mercurial problem, you should simply commit your changes so you may
> go back and forth:
>
> $ hg commit -m "my new check"
> $ hg up .^ # go back to parent changeset
> $ hg up tip # go back to changeset introducing my new check
>
> If you have the evolve extension [3] installed and activated (promise it's worth
> the try ;), you may modify your changeset later on, and much more
>
> # do some changes to e.g. fix the test
> $ hg amend # update the current changeset
Thanks, I'll try and check this stuff out in the future. I've gotten
pretty comfortable with git by using it daily at work, but many of the
common hg idioms remain a complete mystery to me, probably because I
don't use it day-in, day-out.
Skip
More information about the code-quality
mailing list