Browse Source

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
Rayyan Ansari 2 years ago
parent
commit
208add518f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/borg/testsuite/archiver/create_cmd.py

+ 2 - 1
src/borg/testsuite/archiver/create_cmd.py

@@ -13,7 +13,7 @@ import pytest
 from ... import platform
 from ... import platform
 from ...constants import *  # NOQA
 from ...constants import *  # NOQA
 from ...manifest import Manifest
 from ...manifest import Manifest
-from ...platform import is_cygwin
+from ...platform import is_cygwin, is_win32
 from ...repository import Repository
 from ...repository import Repository
 from .. import has_lchflags
 from .. import has_lchflags
 from .. import changedir
 from .. import changedir
@@ -119,6 +119,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         # we have all fs items exactly once!
         # we have all fs items exactly once!
         assert sorted(paths) == ["input", "input/a", "input/a/hardlink", "input/b", "input/b/hardlink"]
         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):
     def test_unix_socket(self):
         self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
         self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
         try:
         try: