Skip to content

Commit 8ceb26d

Browse files
authored
Fix IsADirectoryError in tests/lint/unittest_lint (pylint-dev#4781)
pylintd is a directory, so os.remove throws IsADirectoryError
1 parent a31e6bc commit 8ceb26d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTORS.txt

+2
Original file line numberDiff line numberDiff line change
@@ -527,3 +527,5 @@ contributors:
527527
* Eisuke Kawashima (e-kwsm): contributor
528528

529529
* Daniel van Noord (DanielNoord): contributor
530+
531+
* Michal Vasilek: contributor

tests/lint/unittest_lint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def test_pylint_home():
643643
assert config.PYLINT_HOME == pylintd
644644
finally:
645645
try:
646-
os.remove(pylintd)
646+
rmtree(pylintd)
647647
except FileNotFoundError:
648648
pass
649649
finally:

0 commit comments

Comments
 (0)