Skip to content

Commit

Permalink
testsuite: archiver: skip test_unix_socket on Windows
Browse files Browse the repository at this point in the history
Python on Windows does not support the AF_UNIX socket type yet.
python/cpython#77589
  • Loading branch information
RayyanAnsari committed Nov 29, 2022
1 parent 0d3eeca commit cbb4d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/borg/testsuite/archiver/create_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ... import platform
from ...constants import * # NOQA
from ...manifest import Manifest
from ...platform import is_cygwin
from ...platform import is_cygwin, is_win32
from ...repository import Repository
from .. import has_lchflags
from .. import changedir
Expand Down Expand Up @@ -119,6 +119,7 @@ def test_create_duplicate_root(self):
# we have all fs items exactly once!
assert sorted(paths) == ["input", "input/a", "input/a/hardlink", "input/b", "input/b/hardlink"]

@pytest.mark.skipif(is_win32, reason="unix sockets not available on windows")
def test_unix_socket(self):
self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
try:
Expand Down

0 comments on commit cbb4d2e

Please sign in to comment.