diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-09 09:01:13 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-09 09:01:13 +0200 |
commit | 8018ea37cf292c188b6bc67eeaad9968122c373a (patch) | |
tree | f289727423b9f03ea344d85716e51bd3a11da701 /testutils.py | |
parent | dcf429c6ea66fec350041521dda659ffd7a99c70 (diff) | |
download | pylint-git-8018ea37cf292c188b6bc67eeaad9968122c373a.tar.gz |
[testutils] UnittestLinter.add_stats return stats for actual linter compat
Diffstat (limited to 'testutils.py')
-rw-r--r-- | testutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testutils.py b/testutils.py index 668bd6d28..6e2f1c5e0 100644 --- a/testutils.py +++ b/testutils.py @@ -148,6 +148,7 @@ class UnittestLinter(object): def add_stats(self, **kwargs): for name, value in kwargs.iteritems(): self.stats[name] = value + return self.stats def set_config(**kwargs): @@ -174,7 +175,6 @@ class CheckerTestCase(testlib.TestCase): for key, value in self.CONFIG.iteritems(): setattr(self.checker.config, key, value) self.checker.open() - self.checker.stats = self.linter.stats @contextlib.contextmanager def assertNoMessages(self): |