Skip to content

Commit 2b5bca4

Browse files
cygwin: skip ~root base dir test
1 parent 5070066 commit 2b5bca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/borg/testsuite/helpers/fs_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
make_path_safe,
2323
map_chars,
2424
)
25-
from ...platform import is_win32, is_darwin, is_haiku
25+
from ...platform import is_win32, is_darwin, is_haiku, is_cygwin
2626
from .. import are_hardlinks_supported
2727
from .. import rejected_dotdot_paths
2828

@@ -34,7 +34,7 @@ def test_get_base_dir(monkeypatch):
3434
monkeypatch.delenv("USER", raising=False)
3535
assert get_base_dir(legacy=True) == os.path.expanduser("~")
3636
# Haiku OS is a single-user OS, expanding "~root" is not supported.
37-
if not is_haiku:
37+
if not (is_haiku or is_cygwin):
3838
monkeypatch.setenv("USER", "root")
3939
assert get_base_dir(legacy=True) == os.path.expanduser("~root")
4040
monkeypatch.setenv("HOME", "/var/tmp/home")

0 commit comments

Comments
 (0)