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 @@ -380,13 +380,13 @@ def _getconftestmodules(self, path):
380
380
if self ._noconftest :
381
381
return []
382
382
383
- if path .isfile ():
384
- directory = path .dirpath ()
385
- else :
386
- directory = path
387
383
try :
388
- return self ._path2confmods [directory ]
384
+ return self ._path2confmods [path ]
389
385
except KeyError :
386
+ if path .isfile ():
387
+ directory = path .dirpath ()
388
+ else :
389
+ directory = path
390
390
# XXX these days we may rather want to use config.rootdir
391
391
# and allow users to opt into looking into the rootdir parent
392
392
# directories instead of requiring to specify confcutdir
@@ -399,7 +399,7 @@ def _getconftestmodules(self, path):
399
399
mod = self ._importconftest (conftestpath )
400
400
clist .append (mod )
401
401
402
- self ._path2confmods [directory ] = clist
402
+ self ._path2confmods [path ] = clist
403
403
return clist
404
404
405
405
def _rget_with_confmod (self , name , path ):
You can’t perform that action at this time.
0 commit comments