Skip to content

Commit cbee643

Browse files
code drop in config: remove cli argument dropping from locate_config
its already taken care of earlier
1 parent bc666a8 commit cbee643

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_pytest/config/findpaths.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ def load_config_dict_from_file(path: Path) -> PARSE_RESULT:
134134

135135

136136
def locate_config(
137-
args: Iterable[Path],
137+
args: List[Path],
138138
) -> Tuple[Optional[Path], Optional[Path], Dict[str, Union[str, List[str]]]]:
139139
"""Search in the list of arguments for a valid ini-file for pytest,
140140
and return a tuple of (rootdir, inifile, cfg-dict)."""
141141

142-
args = [x for x in args if not str(x).startswith("-")]
143142
if not args:
144143
args = [Path.cwd()]
145144
for arg in args:

0 commit comments

Comments
 (0)