Skip to content

Commit bffa97f

Browse files
committed
Port to unittest
Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
1 parent c8d87b9 commit bffa97f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/test_func.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
from os.path import join, dirname, abspath
33
import unittest
4-
from logilab.common import testlib
54
from pylint.testutils import make_tests, LintTestUsingModule, LintTestUsingFile, cb_test_gen, linter
65
import sys
76

@@ -17,14 +16,14 @@
1716

1817

1918
def suite():
20-
return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite)
21-
for test in make_tests(INPUT_DIR, MESSAGES_DIR,
22-
FILTER_RGX, CALLBACKS)])
19+
return unittest.TestSuite([unittest.makeSuite(test, suiteClass=unittest.TestSuite)
20+
for test in make_tests(INPUT_DIR, MESSAGES_DIR,
21+
FILTER_RGX, CALLBACKS)])
2322

2423
if __name__=='__main__':
2524
if len(sys.argv) > 1:
2625
FILTER_RGX = sys.argv[1]
2726
del sys.argv[1]
28-
testlib.unittest_main(defaultTest='suite')
27+
unittest.main(defaultTest='suite')
2928

3029

0 commit comments

Comments
 (0)