summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorMichal Vasilek <michal@vasilek.cz>2021-08-01 08:14:58 +0200
committerGitHub <noreply@github.com>2021-08-01 08:14:58 +0200
commit8ceb26dc66912e8f65adce0bc6ba22e87ceed3bb (patch)
tree63568cb229ecf5d87097ab98a5768b1d3d702485 /tests/lint
parenta31e6bce1cc97611c4f58407bc613db42eb174c7 (diff)
downloadpylint-git-8ceb26dc66912e8f65adce0bc6ba22e87ceed3bb.tar.gz
Fix IsADirectoryError in tests/lint/unittest_lint (#4781)
pylintd is a directory, so os.remove throws IsADirectoryError
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/unittest_lint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py
index cd4f5667b..20c8a7500 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -643,7 +643,7 @@ def test_pylint_home():
assert config.PYLINT_HOME == pylintd
finally:
try:
- os.remove(pylintd)
+ rmtree(pylintd)
except FileNotFoundError:
pass
finally: