From 200fe48de75f260e5782b72768630c45b073c5bb Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Tue, 3 Mar 2026 12:27:28 +0300 Subject: Intermediate changes commit_hash:85afa7bf1a79b5728ecd004afa11afa9a603f9ea --- library/python/pytest/plugins/conftests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'library/python/pytest/plugins/conftests.py') diff --git a/library/python/pytest/plugins/conftests.py b/library/python/pytest/plugins/conftests.py index d5c0a4f1947..33701fd7452 100644 --- a/library/python/pytest/plugins/conftests.py +++ b/library/python/pytest/plugins/conftests.py @@ -80,7 +80,8 @@ _conftest_modules = [] def pytest_load_initial_conftests(early_config): pluginmanager = early_config.pluginmanager - conftests = filter(lambda name: name.endswith('.conftest'), getattr(sys, 'extra_modules', [])) + extra_modules = getattr(sys, 'extra_modules', []) + conftests = filter(lambda name: name == 'conftest' or name.endswith('.conftest'), extra_modules) if os.getenv('CONFTEST_LOAD_POLICY') == 'LOCAL': test_dir = str(yatest.common.context.project_path) -- cgit v1.3