config: return Sequence instead of List from _getconftestmodules
Nothing should mutate the internal data structure here.
This commit is contained in:
parent
ed83efaf4b
commit
d98b695fec
|
@ -546,7 +546,7 @@ class PytestPluginManager(PluginManager):
|
|||
|
||||
def _getconftestmodules(
|
||||
self, path: Path, importmode: Union[str, ImportMode], rootpath: Path
|
||||
) -> List[types.ModuleType]:
|
||||
) -> Sequence[types.ModuleType]:
|
||||
if self._noconftest:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in New Issue