mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[3.1.x] Fixed #30807 -- Fixed TestArchive.test_extract_file_permissions() when umask is 0o000.
Fixed test that checks permissions on files extracted from archives with no permissions set, to not assume a default umask of 0o002. Test regression inc95d063e77. Backport ofec5aa2161dfrom master
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							5263480d7f
						
					
				
				
					commit
					c944df827f
				
			| @@ -44,4 +44,4 @@ class TestArchive(unittest.TestCase): | |||||||
|                 self.assertEqual(os.stat(filepath).st_mode & mask, 0o775) |                 self.assertEqual(os.stat(filepath).st_mode & mask, 0o775) | ||||||
|                 # A file is readable even if permission data is missing. |                 # A file is readable even if permission data is missing. | ||||||
|                 filepath = os.path.join(tmpdir, 'no_permissions') |                 filepath = os.path.join(tmpdir, 'no_permissions') | ||||||
|                 self.assertEqual(os.stat(filepath).st_mode & mask, 0o664 & ~umask) |                 self.assertEqual(os.stat(filepath).st_mode & mask, 0o666 & ~umask) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user