Skip to content

Commit

Permalink
Fix IsADirectoryError in tests/lint/unittest_lint (pylint-dev#4781)
Browse files Browse the repository at this point in the history
pylintd is a directory, so os.remove throws IsADirectoryError
  • Loading branch information
paper42 committed Aug 1, 2021
1 parent a31e6bc commit 8ceb26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -527,3 +527,5 @@ contributors:
* Eisuke Kawashima (e-kwsm): contributor

* Daniel van Noord (DanielNoord): contributor

* Michal Vasilek: contributor
2 changes: 1 addition & 1 deletion tests/lint/unittest_lint.py
Expand Up @@ -643,7 +643,7 @@ def test_pylint_home():
assert config.PYLINT_HOME == pylintd
finally:
try:
os.remove(pylintd)
rmtree(pylintd)
except FileNotFoundError:
pass
finally:
Expand Down

0 comments on commit 8ceb26d

Please sign in to comment.