Skip to content

Commit f05d46e

Browse files
committed
Make the order of introspected functional tests deterministic
1 parent cd1ddff commit f05d46e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylint/testutils/functional/find_functional_tests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ def get_functional_test_files_from_directory(
3838

3939
_check_functional_tests_structure(Path(input_dir))
4040

41-
for dirpath, _, filenames in os.walk(input_dir):
41+
for dirpath, dirnames, filenames in os.walk(input_dir):
4242
if dirpath.endswith("__pycache__"):
4343
continue
44+
dirnames.sort()
45+
filenames.sort()
4446
for filename in filenames:
4547
if filename != "__init__.py" and filename.endswith(".py"):
4648
suite.append(FunctionalTestFile(dirpath, filename))

0 commit comments

Comments
 (0)