diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-11-14 17:13:44 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-11-28 16:09:53 +0100 |
commit | ceddd5dea9a2f3369e1e4ae42f0381fd21ca7b68 (patch) | |
tree | c56ef26c806514e7cd042b49424a860e47f1e59b | |
parent | ebd35f03c7b8f7d76b83835df5e9cea287b941b1 (diff) | |
download | pylint-git-ceddd5dea9a2f3369e1e4ae42f0381fd21ca7b68.tar.gz |
Fix python 3.5 pipeline that do not have deprecation to handle
-rw-r--r-- | tests/test_func.py | 2 | ||||
-rw-r--r-- | tests/test_functional.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_func.py b/tests/test_func.py index f38b03f6a..b8903a4d8 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -136,7 +136,7 @@ TEST_WITH_EXPECTED_DEPRECATION = ["func_excess_escapes.py"] ids=[o[0] for o in gen_tests(FILTER_RGX)], ) def test_functionality(module_file, messages_file, dependencies): - if module_file in TEST_WITH_EXPECTED_DEPRECATION: + if module_file in TEST_WITH_EXPECTED_DEPRECATION and sys.version_info.minor > 5: # Remove <unknown>:x: DeprecationWarning: invalid escape sequence with pytest.deprecated_call(): __test_functionality(module_file, messages_file, dependencies) diff --git a/tests/test_functional.py b/tests/test_functional.py index 013efb91f..331babdbe 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -112,7 +112,7 @@ def test_functional(test_file): else testutils.LintModuleTest(test_file) ) LintTest.setUp() - if test_file.base in TEST_WITH_EXPECTED_DEPRECATION: + if test_file.base in TEST_WITH_EXPECTED_DEPRECATION and sys.version_info.minor > 5: with pytest.deprecated_call(): LintTest._runTest() else: |