From 34d99733ba15b70144ea8ebd1adb4490b1811e51 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Sun, 10 May 2026 17:33:30 +0200 Subject: [PATCH] Fix test race condition by ignoring pytest-* directories (#3954) --- tests/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index 2ec1330be..cfa7dbf83 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -45,7 +45,7 @@ def _prepare_root_module(path): _ignore = shutil.ignore_patterns('*.auto.tfvars', '*.auto.tfvars.json', '[0-9]-*-providers.tf', 'terraform.tfstate*', '.terraform.lock.hcl', 'terraform.tfvars', - '.terraform', '.git') + '.terraform', '.git', 'pytest-*') def ignore_patterns(src, names): ignored = set(_ignore(src, names))