diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-10-16 14:22:06 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-10-16 14:22:06 +0300 |
commit | 11ed19d3cfd4574dba17554e8ec27999a1578d05 (patch) | |
tree | 845c2f3b6a050548b6ece583eb6e03b21701c291 /testutils.py | |
parent | 69672965cabf5f31d3f17c2095ba9685deafb0a8 (diff) | |
parent | 9851fe59dc2b3abb7e30af69f6d6c1d40419c7b9 (diff) | |
download | pylint-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.py | 3 |
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() |