From 658942f1f09ea3adf570e15f44c24e3ff4acdea7 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 27 Aug 2016 14:59:07 +0200 Subject: [PATCH 1/3] Remove --use-mirrors Signed-off-by: Sebastian Ramacher --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b0853f5..e806b4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,10 @@ python: - "2.6" - "2.7" install: - - "pip install --use-mirrors coverage coveralls" - - "pip install --use-mirrors -r test_requirements.txt" - - "pip install --use-mirrors git+https://github.com/landscapeio/pylint-plugin-utils.git@develop" - - "pip install --use-mirrors --editable ." + - "pip install coverage coveralls" + - "pip install -r test_requirements.txt" + - "pip install git+https://github.com/landscapeio/pylint-plugin-utils.git@develop" + - "pip install --editable ." script: coverage run test/test_func.py after_success: From c8d87b9380689585ae86ba685adb02d3e36b4b84 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 27 Aug 2016 15:27:13 +0200 Subject: [PATCH 2/3] Update Python versions pylint no longer supports 2.6, so drop it from the tested Python versions. Signed-off-by: Sebastian Ramacher --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e806b4f..b95cc7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: python python: - - "2.6" - "2.7" + - "3.4" + - "3.5" install: - "pip install coverage coveralls" - "pip install -r test_requirements.txt" From bffa97f68570b90d85d2d714e71954650b37b8cd Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 27 Aug 2016 19:00:58 +0200 Subject: [PATCH 3/3] Port to unittest Signed-off-by: Sebastian Ramacher --- test/test_func.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_func.py b/test/test_func.py index 98139d3..089b09a 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -1,7 +1,6 @@ from os.path import join, dirname, abspath import unittest -from logilab.common import testlib from pylint.testutils import make_tests, LintTestUsingModule, LintTestUsingFile, cb_test_gen, linter import sys @@ -17,14 +16,14 @@ def suite(): - return testlib.TestSuite([unittest.makeSuite(test, suiteClass=testlib.TestSuite) - for test in make_tests(INPUT_DIR, MESSAGES_DIR, - FILTER_RGX, CALLBACKS)]) + return unittest.TestSuite([unittest.makeSuite(test, suiteClass=unittest.TestSuite) + for test in make_tests(INPUT_DIR, MESSAGES_DIR, + FILTER_RGX, CALLBACKS)]) if __name__=='__main__': if len(sys.argv) > 1: FILTER_RGX = sys.argv[1] del sys.argv[1] - testlib.unittest_main(defaultTest='suite') + unittest.main(defaultTest='suite')