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
commit76ca4cc51a338a01e7157ed67a36d22547a4c233 (patch)
tree3c55cec9ec4981f69d0c279d70cc692bcad9a7f3 /test/test_func.py
parent84ddbc2540f2f21810ef991e59f791cce2c995bf (diff)
downloadpylint-76ca4cc51a338a01e7157ed67a36d22547a4c233.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 249ca86..a97c549 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: