code drop in config: remove cli argument dropping from locate_config

its already taken care of earlier
This commit is contained in:
Ronny Pfannschmidt 2021-02-20 22:20:32 +01:00
parent 17514c15db
commit 5c3fea0d8b
1 changed files with 1 additions and 2 deletions

View File

@ -143,12 +143,11 @@ def load_config_dict_from_file(path: Path) -> PARSE_RESULT:
def locate_config(
args: Iterable[Path],
args: List[Path],
) -> Tuple[Optional[Path], Optional[Path], Dict[str, Union[str, List[str]]]]:
"""Search in the list of arguments for a valid ini-file for pytest,
and return a tuple of (rootdir, inifile, cfg-dict)."""
args = [x for x in args if not str(x).startswith("-")]
if not args:
args = [Path.cwd()]
for arg in args: