Skip to content

Commit d98b695

Browse files
committed
config: return Sequence instead of List from _getconftestmodules
Nothing should mutate the internal data structure here.
1 parent ed83efa commit d98b695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def _try_load_conftest(
546546

547547
def _getconftestmodules(
548548
self, path: Path, importmode: Union[str, ImportMode], rootpath: Path
549-
) -> List[types.ModuleType]:
549+
) -> Sequence[types.ModuleType]:
550550
if self._noconftest:
551551
return []
552552

0 commit comments

Comments
 (0)