summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorkriek <sylvain.ackermann@gmail.com>2022-10-24 14:12:50 +0200
committerGitHub <noreply@github.com>2022-10-24 14:12:50 +0200
commitd591cce71cd06b01c5e94ded1a10c6c0fc092d6d (patch)
tree7148630d3f625889a2351cb22a2619700f8e8e90 /pylint
parent096f6d7650d6feb1f723642cf35300dc12bcd6aa (diff)
downloadpylint-git-d591cce71cd06b01c5e94ded1a10c6c0fc092d6d.tar.gz
Make the order of introspected functional tests deterministic (#7602)
Diffstat (limited to 'pylint')
-rw-r--r--pylint/testutils/functional/find_functional_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/testutils/functional/find_functional_tests.py b/pylint/testutils/functional/find_functional_tests.py
index 7b86ee642..200cee7ec 100644
--- a/pylint/testutils/functional/find_functional_tests.py
+++ b/pylint/testutils/functional/find_functional_tests.py
@@ -38,9 +38,11 @@ def get_functional_test_files_from_directory(
_check_functional_tests_structure(Path(input_dir))
- for dirpath, _, filenames in os.walk(input_dir):
+ for dirpath, dirnames, filenames in os.walk(input_dir):
if dirpath.endswith("__pycache__"):
continue
+ dirnames.sort()
+ filenames.sort()
for filename in filenames:
if filename != "__init__.py" and filename.endswith(".py"):
suite.append(FunctionalTestFile(dirpath, filename))