Skip to content

Commit 7a46dfc

Browse files
authored
Merge pull request #2171 from gitpython-developers/fix-windows-tests
Skip cross-drive relative config test on Windows
2 parents 7b0764d + 67082d6 commit 7a46dfc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/test_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ def test_config_relative_path_include(self, rw_dir):
320320
with GitConfigParser(config_path, read_only=False) as cw:
321321
cw.set_value("include", "path", "included")
322322

323+
if osp.splitdrive(config_path)[0] != osp.splitdrive(os.getcwd())[0]:
324+
pytest.skip("The temporary directory and checkout are on different drives")
325+
323326
relative_config_path = osp.relpath(config_path)
324327
with GitConfigParser(relative_config_path, read_only=True) as cr:
325328
assert cr.get_value("included", "value") == "included"

0 commit comments

Comments
 (0)