File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -387,13 +387,13 @@ def _getconftestmodules(self, path):
387387 if self ._noconftest :
388388 return []
389389
390- if path .isfile ():
391- directory = path .dirpath ()
392- else :
393- directory = path
394390 try :
395- return self ._path2confmods [directory ]
391+ return self ._path2confmods [path ]
396392 except KeyError :
393+ if path .isfile ():
394+ directory = path .dirpath ()
395+ else :
396+ directory = path
397397 # XXX these days we may rather want to use config.rootdir
398398 # and allow users to opt into looking into the rootdir parent
399399 # directories instead of requiring to specify confcutdir
@@ -406,7 +406,7 @@ def _getconftestmodules(self, path):
406406 mod = self ._importconftest (conftestpath )
407407 clist .append (mod )
408408
409- self ._path2confmods [directory ] = clist
409+ self ._path2confmods [path ] = clist
410410 return clist
411411
412412 def _rget_with_confmod (self , name , path ):
You can’t perform that action at this time.
0 commit comments