From 768a645011f60d5fafa4f20a4542fecc3d63b508 Mon Sep 17 00:00:00 2001 From: Chris Wheeler Date: Mon, 23 May 2022 09:38:30 -0400 Subject: [PATCH] Allow config to exist in ".pytest.ini" Added config search option of ".pytest.ini" in addition to "pytest.ini" --- src/_pytest/config/findpaths.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/config/findpaths.py b/src/_pytest/config/findpaths.py index ead344baa..43c236779 100644 --- a/src/_pytest/config/findpaths.py +++ b/src/_pytest/config/findpaths.py @@ -96,6 +96,7 @@ def locate_config( and return a tuple of (rootdir, inifile, cfg-dict).""" config_names = [ "pytest.ini", + ".pytest.ini", "pyproject.toml", "tox.ini", "setup.cfg",