File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,16 @@ def get_functional_test_files_from_directory(
80
80
81
81
for filename in filenames :
82
82
if filename != "__init__.py" and filename .endswith (".py" ):
83
- # isort 5 has slightly different rules as isort 4. Testing
84
- # both would be hard: test with isort 5 only.
85
- if filename == "wrong_import_order.py" and not HAS_ISORT_5 :
86
- continue
87
83
suite .append (testutils .FunctionalTestFile (dirpath , filename ))
88
84
return suite
89
85
90
86
91
- TESTS = get_functional_test_files_from_directory (FUNCTIONAL_DIR )
87
+ # isort 5 has slightly different rules as isort 4. Testing both would be hard: test with isort 5 only.
88
+ TESTS = [
89
+ t
90
+ for t in get_functional_test_files_from_directory (FUNCTIONAL_DIR )
91
+ if not (t .base == "wrong_import_order" and not HAS_ISORT_5 )
92
+ ]
92
93
TESTS_NAMES = [t .base for t in TESTS ]
93
94
TEST_WITH_EXPECTED_DEPRECATION = [
94
95
"future_unicode_literals" ,
You can’t perform that action at this time.
0 commit comments