Return an empty list directly.
This commit is contained in:
		
							parent
							
								
									8e0589af69
								
							
						
					
					
						commit
						f78b6df8bc
					
				|  | @ -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: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue