From 5c3fea0d8bacff3432118bbb005173c1ffb65f2c Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 20 Feb 2021 22:20:32 +0100 Subject: [PATCH] code drop in config: remove cli argument dropping from locate_config its already taken care of earlier --- src/_pytest/config/findpaths.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_pytest/config/findpaths.py b/src/_pytest/config/findpaths.py index 7c6a6c420..cb283c641 100644 --- a/src/_pytest/config/findpaths.py +++ b/src/_pytest/config/findpaths.py @@ -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: