Skip to content

Commit

Permalink
config: return Sequence instead of List from _getconftestmodules
Browse files Browse the repository at this point in the history
Nothing should mutate the internal data structure here.
  • Loading branch information
bluetech committed Jan 8, 2022
1 parent ed83efa commit d98b695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Expand Up @@ -546,7 +546,7 @@ def _try_load_conftest(

def _getconftestmodules(
self, path: Path, importmode: Union[str, ImportMode], rootpath: Path
) -> List[types.ModuleType]:
) -> Sequence[types.ModuleType]:
if self._noconftest:
return []

Expand Down

0 comments on commit d98b695

Please sign in to comment.