From 208add518fe7dbab47d8519a7ca691fe29672d8e Mon Sep 17 00:00:00 2001 From: Rayyan Ansari Date: Sun, 27 Nov 2022 16:08:12 +0000 Subject: [PATCH] testsuite: archiver: skip test_unix_socket on Windows Python on Windows does not support the AF_UNIX socket type yet. https://github.com/python/cpython/issues/77589 --- src/borg/testsuite/archiver/create_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/testsuite/archiver/create_cmd.py b/src/borg/testsuite/archiver/create_cmd.py index db9e0c5c2..2de6c2405 100644 --- a/src/borg/testsuite/archiver/create_cmd.py +++ b/src/borg/testsuite/archiver/create_cmd.py @@ -13,7 +13,7 @@ import pytest 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 @@ -119,6 +119,7 @@ class ArchiverTestCase(ArchiverTestCaseBase): # 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: