diff options
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r-- | tests/test_functional.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index e7eacf4a6..f31221772 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -28,6 +28,7 @@ import sys import pytest from pylint import testutils +from pylint.utils import HAS_ISORT_5 class test_dialect(csv.excel): @@ -77,6 +78,10 @@ def get_tests(): continue for filename in filenames: if filename != "__init__.py" and filename.endswith(".py"): + # isort 5 has slightly different rules as isort 4. Testing + # both would be hard: test with isort 5 only. + if filename == "wrong_import_order.py" and not HAS_ISORT_5: + continue suite.append(testutils.FunctionalTestFile(dirpath, filename)) return suite |