From f78b6df8bc2d8df037a7e1f6496e87cb8d99ba36 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 23 Jun 2015 14:05:44 +0200 Subject: [PATCH] Return an empty list directly. --- _pytest/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/config.py b/_pytest/config.py index 7f14256c6..b358cfd4c 100644 --- a/_pytest/config.py +++ b/_pytest/config.py @@ -239,7 +239,7 @@ class PytestPluginManager(PluginManager): def _getconftestmodules(self, path): if self._noconftest: - self._path2confmods[path] = [] + return [] try: return self._path2confmods[path] except KeyError: