summaryrefslogtreecommitdiff
path: root/test/test_func.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-28 15:02:35 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-28 15:02:35 +0200
commitef03a02645383462f5f2003f7d88bc0799bebc56 (patch)
treec49f85c4211c68eb6f3647c9080ffe421cc3cb7f /test/test_func.py
parent97ef5afc42a85d63c03bbe90c4d2e6eeb27defdf (diff)
downloadpylint-git-ef03a02645383462f5f2003f7d88bc0799bebc56.tar.gz
update to unittest2
Diffstat (limited to 'test/test_func.py')
-rw-r--r--test/test_func.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_func.py b/test/test_func.py
index 249ca865b..a97c5492d 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -104,7 +104,7 @@ class LintTestUsingModule(testlib.TestCase):
output.close()
got = self.linter.reporter.finalize().strip()
try:
- self.assertLinesEquals(got, expected)
+ self.assertMultiLineEqual(got, expected)
except Exception, ex:
# doesn't work with py 2.5
#ex.file = tocheck
@@ -227,8 +227,8 @@ FILTER_RGX = None
MODULES_ONLY = False
def suite():
- return unittest.TestSuite([unittest.makeSuite(test)
- for test in make_tests(FILTER_RGX)])
+ return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite)
+ for test in make_tests(FILTER_RGX)])
if __name__=='__main__':
if '-m' in sys.argv: