diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-07-26 17:11:14 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-07-26 17:11:14 +0200 |
commit | d1448a7e57738393a9b51d890e4cd5f163997f52 (patch) | |
tree | 3a297759ab17b823b769784dea7d2c758d1af0c6 /test/test_regr.py | |
parent | 30793941b79daaeb7368c87eea35614254b65ddd (diff) | |
download | pylint-d1448a7e57738393a9b51d890e4cd5f163997f52.tar.gz |
Remove dependency on logilab.testlib in the test suite (also removes Python 2.5 compatibility).
Diffstat (limited to 'test/test_regr.py')
-rw-r--r-- | test/test_regr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_regr.py b/test/test_regr.py index 8d76e2b..6fb0fc5 100644 --- a/test/test_regr.py +++ b/test/test_regr.py @@ -20,8 +20,7 @@ to be incorporated in the automatic functional test framework import sys import os from os.path import abspath, dirname, join - -from logilab.common.testlib import TestCase, unittest_main +import unittest from pylint.testutils import TestReporter from pylint.lint import PyLinter @@ -37,7 +36,7 @@ checkers.initialize(linter) REGR_DATA = join(dirname(abspath(__file__)), 'regrtest_data') sys.path.insert(1, REGR_DATA) -class NonRegrTC(TestCase): +class NonRegrTC(unittest.TestCase): def setUp(self): """call reporter.finalize() to cleanup pending messages if a test finished badly @@ -138,5 +137,6 @@ class NonRegrTC(TestCase): got = linter.reporter.finalize().strip() self.assertEqual(got, "") + if __name__ == '__main__': - unittest_main() + unittest.main() |