diff options
author | Eisuke Kawashima <e-kwsm@users.noreply.github.com> | 2021-07-29 05:02:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 22:02:54 +0200 |
commit | ae6cbd1062c0a8e68d32a5cdc67c993da26d0f4a (patch) | |
tree | a4a7aae26c8db4bda1825c6318558fefe4cbb055 /tests/lint | |
parent | 24d03e9410520849494db1bde84334769217b3d4 (diff) | |
download | pylint-git-ae6cbd1062c0a8e68d32a5cdc67c993da26d0f4a.tar.gz |
Use `XDG_CACHE_HOME` for `PYLINTHOME` (#4661)
Closes #3878
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/lint')
-rw-r--r-- | tests/lint/unittest_lint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 004c29281..cd4f5667b 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -46,6 +46,7 @@ from os import chdir, getcwd from os.path import abspath, basename, dirname, isdir, join, sep from shutil import rmtree +import appdirs import pytest from pylint import checkers, config, exceptions, interfaces, lint, testutils @@ -631,7 +632,7 @@ def test_pylint_home(): if uhome == "~": expected = ".pylint.d" else: - expected = os.path.join(uhome, ".pylint.d") + expected = appdirs.user_cache_dir("pylint") assert config.PYLINT_HOME == expected try: |