diff options
| author | robot-piglet <[email protected]> | 2026-03-03 12:27:28 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-03-03 14:10:14 +0300 |
| commit | 200fe48de75f260e5782b72768630c45b073c5bb (patch) | |
| tree | a823ce3c1d488c7b4ce4093eb78993f124ecd41c /library/python/pytest/plugins | |
| parent | d29e1eafd7359dc59db71f0773cf51c7e7d43a66 (diff) | |
Intermediate changes
commit_hash:85afa7bf1a79b5728ecd004afa11afa9a603f9ea
Diffstat (limited to 'library/python/pytest/plugins')
| -rw-r--r-- | library/python/pytest/plugins/conftests.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
