Skip to content

Commit

Permalink
fixup! Fix determining rootdir from common_ancestor
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jun 26, 2016
1 parent 53cd1ec commit 00d90da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _pytest/config.py
Expand Up @@ -1140,7 +1140,8 @@ def determine_setup(inifile, args):
dirs, ["pytest.ini", "tox.ini", "setup.cfg"])
if rootdir is None:
rootdir = get_common_ancestor([py.path.local(), ancestor])
if os.path.splitdrive(str(rootdir))[1] == os.sep:
is_fs_root = os.path.splitdrive(str(rootdir))[1] == os.sep
if is_fs_root:
rootdir = ancestor
return rootdir, inifile, inicfg or {}

Expand Down

0 comments on commit 00d90da

Please sign in to comment.