diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-14 11:54:05 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-14 11:54:05 +0200 |
commit | d181d13acbbdbf32a5b145851dfbf7c0800604dd (patch) | |
tree | 33f2ebc39a36183eb38d14865a83f6641f093db4 /testutils.py | |
parent | d22ea81815864e1877193c96a5a89d43c19cad4b (diff) | |
download | pylint-git-d181d13acbbdbf32a5b145851dfbf7c0800604dd.tar.gz |
[test] strip output to avoid dumb errors
Diffstat (limited to 'testutils.py')
-rw-r--r-- | testutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testutils.py b/testutils.py index 1658e1028..69ffde57c 100644 --- a/testutils.py +++ b/testutils.py @@ -256,7 +256,7 @@ class LintTestUsingModule(testlib.TestCase): self._test(tocheck) def _check_result(self, got): - self.assertMultiLineEqual(self._get_expected(), got) + self.assertMultiLineEqual(self._get_expected().strip(), got.strip()) def _test(self, tocheck): if INFO_TEST_RGX.match(self.module): @@ -272,7 +272,7 @@ class LintTestUsingModule(testlib.TestCase): print ex ex.__str__ = exception_str raise - self._check_result(self.linter.reporter.finalize()) + self._check_result(self.linter.reporter.finalize()) def _has_output(self): return not self.module.startswith('func_noerror_') |