@@ -789,6 +789,9 @@ def test_file_link(self, temp_file: File, tmp_path: Path):
789789 assert os .stat (target ).st_ino == os .stat (temp_file .path ).st_ino
790790 assert result is temp_file
791791
792+ @pytest .mark .skipif (
793+ sys .platform == "win32" , reason = "Windows symlinks return extended path format"
794+ )
792795 def test_file_symlink (self , temp_file : File , tmp_path : Path ):
793796 """symlink() creates symbolic link."""
794797 target = str (tmp_path / "symlink.txt" )
@@ -799,6 +802,9 @@ def test_file_symlink(self, temp_file: File, tmp_path: Path):
799802
800803
801804class TestFilePermissions :
805+ @pytest .mark .skipif (
806+ sys .platform == "win32" , reason = "Windows does not support Unix-style permissions"
807+ )
802808 def test_file_chmod (self , temp_file : File ):
803809 """chmod() changes permissions."""
804810 temp_file .chmod (0o400 )
@@ -1069,6 +1075,9 @@ def test_directory_create_returns_self(self, tmp_path: Path):
10691075 result = directory .create ()
10701076 assert result is directory
10711077
1078+ @pytest .mark .skipif (
1079+ sys .platform == "win32" , reason = "Windows does not support Unix-style permissions"
1080+ )
10721081 def test_directory_create_with_mode (self , tmp_path : Path ):
10731082 """create() respects mode parameter."""
10741083 directory = fs .Directory (str (tmp_path / "modedir" ))
@@ -1399,6 +1408,9 @@ def test_directory_rename_returns_self(self, temp_directory: fs.Directory):
13991408
14001409
14011410class TestDirectoryPermissions :
1411+ @pytest .mark .skipif (
1412+ sys .platform == "win32" , reason = "Windows does not support Unix-style permissions"
1413+ )
14021414 def test_directory_chmod (self , temp_directory : fs .Directory ):
14031415 """chmod() changes permissions."""
14041416 temp_directory .chmod (0o755 )
0 commit comments