Skip to content

Commit 00d90da

Browse files
committed
fixup! Fix determining rootdir from common_ancestor
1 parent 53cd1ec commit 00d90da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_pytest/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ def determine_setup(inifile, args):
11401140
dirs, ["pytest.ini", "tox.ini", "setup.cfg"])
11411141
if rootdir is None:
11421142
rootdir = get_common_ancestor([py.path.local(), ancestor])
1143-
if os.path.splitdrive(str(rootdir))[1] == os.sep:
1143+
is_fs_root = os.path.splitdrive(str(rootdir))[1] == os.sep
1144+
if is_fs_root:
11441145
rootdir = ancestor
11451146
return rootdir, inifile, inicfg or {}
11461147

0 commit comments

Comments
 (0)