Add comment on why realpath is needed
This commit is contained in:
parent
59e6fb94b5
commit
391dc549c0
|
@ -408,6 +408,9 @@ class PytestPluginManager(PluginManager):
|
||||||
continue
|
continue
|
||||||
conftestpath = parent.join("conftest.py")
|
conftestpath = parent.join("conftest.py")
|
||||||
if conftestpath.isfile():
|
if conftestpath.isfile():
|
||||||
|
# Use realpath to avoid loading the same conftest twice
|
||||||
|
# with build systems that create build directories containing
|
||||||
|
# symlinks to actual files.
|
||||||
mod = self._importconftest(conftestpath.realpath())
|
mod = self._importconftest(conftestpath.realpath())
|
||||||
clist.append(mod)
|
clist.append(mod)
|
||||||
self._dirpath2confmods[directory] = clist
|
self._dirpath2confmods[directory] = clist
|
||||||
|
|
Loading…
Reference in New Issue