mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #14992: merge from 3.2
This commit is contained in:
		
						commit
						3a2b97e48a
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -863,7 +863,10 @@ def test_exist_ok_s_isgid_directory(self):
 | 
			
		|||
        try:
 | 
			
		||||
            existing_testfn_mode = stat.S_IMODE(
 | 
			
		||||
                    os.lstat(support.TESTFN).st_mode)
 | 
			
		||||
            try:
 | 
			
		||||
                os.chmod(support.TESTFN, existing_testfn_mode | S_ISGID)
 | 
			
		||||
            except PermissionError:
 | 
			
		||||
                raise unittest.SkipTest('Cannot set S_ISGID for dir.')
 | 
			
		||||
            if (os.lstat(support.TESTFN).st_mode & S_ISGID != S_ISGID):
 | 
			
		||||
                raise unittest.SkipTest('No support for S_ISGID dir mode.')
 | 
			
		||||
            # The os should apply S_ISGID from the parent dir for us, but
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue