You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test that runs a pytest session using Pytester and executes pylint through the pytest-pylint plugin. Under these circumstances I'm getting the following error:
tests/pytest_project/test_core.py::test_run_errors Unable to create directory /tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint
Unable to create file /tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint/test_run_errors1.stats: [Errno 2] No such file or directory: '/tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint/test_run_errors1.stats'
If I create the .cache folder manually it succeeds. However, it would be great if pylint could create the necessary parent folders are well when trying to create the pylint folder inside XDG_CACHE_HOME.
Command used
Pylint is invoked indirectly through pytest-pylint.
Pylint output
See error above.
Expected behavior
I would expect that the Pylint cache folder creation succeeds even if XDG_CACHE_HOME does not exist.
Pylint version
pylint 2.10.2
The text was updated successfully, but these errors were encountered:
Bug description
I have a test that runs a pytest session using Pytester and executes pylint through the pytest-pylint plugin. Under these circumstances I'm getting the following error:
If I create the
.cache
folder manually it succeeds. However, it would be great if pylint could create the necessary parent folders are well when trying to create thepylint
folder insideXDG_CACHE_HOME
.Command used
Pylint is invoked indirectly through pytest-pylint.
Pylint output
See error above.
Expected behavior
I would expect that the Pylint cache folder creation succeeds even if
XDG_CACHE_HOME
does not exist.Pylint version
The text was updated successfully, but these errors were encountered: