-
Notifications
You must be signed in to change notification settings - Fork 120
Another take on PR #256 so we can have tests working again #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
instead make use of PYLINT_TEST_FUNCTIONAL_DIR env variable. This is only useful if you are trying to run the test suite and build a new package! Apparently some distributions (Debian) add back the tests/ directory into the package so they can import test_functional.py from there! In Travis CI - use the 2.4 branch for testing
Hi @atodorov! |
The reason I say django-master is useless is that it tests against pylint 2.4 (system-level package) instead of pylint master as configured in the tox env. You can see more details there: #256 (comment) |
@aerostitch just so that we're on the same page. Was your original intention behind #256 to fix the ste suite running against django-master or something else? |
No it wasn't but you asked me to fix the test suite in that PR and that's where I found the tox issue which is part of fixing the test suite. Right now your tests pasd on that tox config only because you're testing against the wrong package version. #256 would have had a lot less commits if I'd had stick to the original intent. |
@aerostitch right, I did ask you to fix an unrelated issue but the original PR became too big. As for testing against django-master+pylint-master I will need to experiment a bit first. However this is outside of the current scope. Above you said this PR looks good. Does it fix your original problem that distros add back the test files to the package ? If yes, let me know if you prefer to merge #256 (minus the django-master changes) or if I should go ahead and merge this one? |
@atodorov the merge of either works for me. Thanks! |
@aerostitch I've taken your changes from #256 and squashed related commits together and removed some things and updated the order of operations.
pylint.testutils
- will work once we have 2.5 releasedtests_functional
. The code will try to usePYLINT_TEST_FUNCTIONAL_DIR
but will default to the Travis locationThe only reason you may need these changes is if you are trying to either develop/test pylint-django locally or maybe you are trying to build a binary package for a Linux distro. The changes above should make it possible to workaround the current state of affairs.
Or alternatively install pylint from master branch and use that instead.
Tell me what you think ?