mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #15478: os.lchflags() is not always available when os.chflags() is available
This commit is contained in:
		
							parent
							
								
									5ff16750f5
								
							
						
					
					
						commit
						ee36c24d15
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -2112,10 +2112,9 @@ def test_oserror_filename(self):
 | 
			
		|||
        if hasattr(os, "truncate"):
 | 
			
		||||
            funcs.append((self.filenames, os.truncate, 0))
 | 
			
		||||
        if hasattr(os, "chflags"):
 | 
			
		||||
            funcs.extend((
 | 
			
		||||
                (self.filenames, os.chflags, 0),
 | 
			
		||||
                (self.filenames, os.lchflags, 0),
 | 
			
		||||
            ))
 | 
			
		||||
            funcs.append((self.filenames, os.chflags, 0))
 | 
			
		||||
        if hasattr(os, "lchflags"):
 | 
			
		||||
            funcs.append((self.filenames, os.lchflags, 0))
 | 
			
		||||
        if hasattr(os, "chroot"):
 | 
			
		||||
            funcs.append((self.filenames, os.chroot,))
 | 
			
		||||
        if hasattr(os, "link"):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue