Return an empty list directly.

This commit is contained in:
Florian Bruhin 2015-06-23 14:05:44 +02:00
parent 8e0589af69
commit f78b6df8bc
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class PytestPluginManager(PluginManager):
def _getconftestmodules(self, path): def _getconftestmodules(self, path):
if self._noconftest: if self._noconftest:
self._path2confmods[path] = [] return []
try: try:
return self._path2confmods[path] return self._path2confmods[path]
except KeyError: except KeyError: