Skip to content

Commit

Permalink
Fix IsADirectoryError in tests/lint/unittest_lint
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 Jul 31, 2021
1 parent a31e6bc commit 55a2e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 55a2e29

Please sign in to comment.