-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Prefix with underscore the private objects from testutils #1438
Comments
To be honest, something as testutils should be considered private, outside of maybe a couple of functions from that file. |
@PCManticore: yeah, that's fair. The difficulty is that as an author of a pylint plugin, there's no clear pattern for writing a test of that plugin, except for pylint itself. https://github.com/landscapeio/pylint-django (not mine), and https://github.com/edx/edx-lint (mine) both ran afoul of this when that function was removed. |
If it's a private API, shouldn't it be marked as _testutils.py? Or are all of pylint's APIs private? If so, that ought to be indicated somewhere. At least astroid's |
That's a reasonable suggestion, we could probably prefix the private APIs with underscore, leaving only the handful public APis untouched. Nobody managed to do that so far because it wasn't a concern to anyone and the problem with the removed functionality is that it was for an obsolete testing methodology of Pylint (being obsoleted by test_functional, which is way saner than the former). |
Steps to reproduce
Current behavior
The tests break with
Expected behavior
The tests pass.
The
make_tests
function was removed in 2fa1375The text was updated successfully, but these errors were encountered: