summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-07-07 10:57:38 +0300
committerGitHub <noreply@github.com>2019-07-07 10:57:38 +0300
commitf7e218bd2ffdcd32ee80cafc2169ec1f2f037364 (patch)
tree0675b0e4e9233a15d9a7ffe3a8439c01f9f461a3 /tests/test_self.py
parent68b1d720dacca07aa5282b1d118d5ab873c5ed15 (diff)
downloadpylint-git-f7e218bd2ffdcd32ee80cafc2169ec1f2f037364.tar.gz
Escape the clean path before normalizing to slashes (#2993)
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index a1e3bb446..456c4172f 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -40,7 +40,7 @@ from pylint.reporters import JSONReporter
from pylint.reporters.text import *
HERE = abspath(dirname(__file__))
-CLEAN_PATH = dirname(dirname(__file__)) + "/"
+CLEAN_PATH = re.escape(dirname(dirname(__file__)) + "/")
@contextlib.contextmanager