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
commit11ed19d3cfd4574dba17554e8ec27999a1578d05 (patch)
tree845c2f3b6a050548b6ece583eb6e03b21701c291 /testutils.py
parent69672965cabf5f31d3f17c2095ba9685deafb0a8 (diff)
parent9851fe59dc2b3abb7e30af69f6d6c1d40419c7b9 (diff)
downloadpylint-11ed19d3cfd4574dba17554e8ec27999a1578d05.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 8ceac5f..0b1b967 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()