We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e6fb9 commit 391dc54Copy full SHA for 391dc54
src/_pytest/config/__init__.py
@@ -408,6 +408,9 @@ def _getconftestmodules(self, path):
408
continue
409
conftestpath = parent.join("conftest.py")
410
if conftestpath.isfile():
411
+ # Use realpath to avoid loading the same conftest twice
412
+ # with build systems that create build directories containing
413
+ # symlinks to actual files.
414
mod = self._importconftest(conftestpath.realpath())
415
clist.append(mod)
416
self._dirpath2confmods[directory] = clist
0 commit comments