summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-10-16 14:22:06 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-10-16 14:22:06 +0300
commit00e7dc3b23ed9fb98d71fc2e39abe9fb471a3d10 (patch)
tree76ee0bc6dc9ce7b3fb6fbfdd3d6bc3b5b7242aae /testutils.py
parentc03fefdefba97e187f5458288227f4224ee53cc0 (diff)
parent1625e73cac5728a555c1b7004decaa83129d2787 (diff)
downloadpylint-git-00e7dc3b23ed9fb98d71fc2e39abe9fb471a3d10.tar.gz
Fix a regression, where '{path}' was no longer accepted in '--msg-template'.
Patch by LCD47.
Diffstat (limited to 'testutils.py')
-rw-r--r--testutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testutils.py b/testutils.py
index 8ceac5fd4..0b1b96732 100644
--- a/testutils.py
+++ b/testutils.py
@@ -24,7 +24,7 @@ import re
import unittest
from glob import glob
-from os import linesep
+from os import linesep, getcwd, sep
from os.path import abspath, basename, dirname, isdir, join, splitext
@@ -95,6 +95,7 @@ class TestReporter(BaseReporter):
def __init__(self):
self.message_ids = {}
self.reset()
+ self.path_strip_prefix = getcwd() + sep
def reset(self):
self.out = StringIO()