Skip to content

Commit 94fb619

Browse files
committed
Skip permissions tests on Windows. #121
1 parent b278e8e commit 94fb619

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test.py

+3
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ def test_get_parent_dir(self):
768768
self.norm_path("/"),
769769
)
770770

771+
@unittest.skipIf(sys.platform.startswith("win"), "Test skipped on Windows")
771772
def test_get_permissions(self):
772773
path = self.temp_path("a/b/c.txt")
773774
fsutil.write_file(path, content="Hello World")
@@ -1231,6 +1232,7 @@ def test_search_dirs(self):
12311232
]
12321233
self.assertEqual(results, expected_results)
12331234

1235+
@unittest.skipIf(sys.platform.startswith("win"), "Test skipped on Windows")
12341236
def test_set_permissions(self):
12351237
path = self.temp_path("a/b/c.txt")
12361238
fsutil.write_file(path, content="Hello World")
@@ -1364,6 +1366,7 @@ def test_write_file_atomic(self):
13641366
fsutil.write_file(path, content="Hello Jupiter", atomic=True)
13651367
self.assertEqual(fsutil.read_file(path), "Hello Jupiter")
13661368

1369+
@unittest.skipIf(sys.platform.startswith("win"), "Test skipped on Windows")
13671370
def test_write_file_atomic_permissions_inheritance(self):
13681371
path = self.temp_path("a/b/c.txt")
13691372
fsutil.write_file(path, content="Hello World", atomic=False)

0 commit comments

Comments
 (0)