diff options
author | Michal Vasilek <michal@vasilek.cz> | 2021-08-01 08:14:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 08:14:58 +0200 |
commit | 8ceb26dc66912e8f65adce0bc6ba22e87ceed3bb (patch) | |
tree | 63568cb229ecf5d87097ab98a5768b1d3d702485 /tests/lint | |
parent | a31e6bce1cc97611c4f58407bc613db42eb174c7 (diff) | |
download | pylint-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.py | 2 |
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: |