summaryrefslogtreecommitdiffstats
path: root/library/python/pytest/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'library/python/pytest/plugins')
-rw-r--r--library/python/pytest/plugins/conftests.py3
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)