File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1549,6 +1549,10 @@ def test_link_follow_symlinks(self):
15491549            except  NotImplementedError :
15501550                if  os .link  in  os .supports_follow_symlinks  or  default_no_follow :
15511551                    raise 
1552+             except  PermissionError :
1553+                 if  sys .platform  ==  'android' :
1554+                     self .skipTest ('Android blocks follow_symlinks with SELinux' )
1555+                 raise 
15521556            else :
15531557                self .addCleanup (os_helper .unlink , link )
15541558                self .assertEqual (posix .lstat (link ), posix .lstat (symlink ))
@@ -1561,6 +1565,10 @@ def test_link_follow_symlinks(self):
15611565            except  NotImplementedError :
15621566                if  os .link  in  os .supports_follow_symlinks  or  default_follow :
15631567                    raise 
1568+             except  PermissionError :
1569+                 if  sys .platform  ==  'android' :
1570+                     self .skipTest ('Android blocks follow_symlinks with SELinux' )
1571+                 raise 
15641572            else :
15651573                self .addCleanup (os_helper .unlink , link )
15661574                self .assertEqual (posix .lstat (link ), posix .lstat (orig ))
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments