summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-06 08:21:44 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2021-02-07 10:28:18 +0100
commit00ad3cd4f9750afb634760335aae211a9954db98 (patch)
tree846dd24f45f704afa459577b1ee5989bebf74942
parentb95ec9707ceb2866344c96d300106fdd3bd60a72 (diff)
downloadpylint-git-00ad3cd4f9750afb634760335aae211a9954db98.tar.gz
Fix mypy error: os module has no attribute "_name"
-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 3ce1d5e24..5a6c2b853 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -63,7 +63,7 @@ from pylint.utils import FileState, tokenize_module
if os.name == "java":
# pylint: disable=no-member
# os._name is valid see https://www.programcreek.com/python/example/3842/os._name
- if os._name == "nt":
+ if os.name == "nt":
HOME = "USERPROFILE"
else:
HOME = "HOME"