mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Issue #7408: Forward port limited test from Python 2.7, fixing failing buildbot tests on BSD-based platforms.
This commit is contained in:
		
							parent
							
								
									72967a4c1a
								
							
						
					
					
						commit
						cb37641bb4
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -471,10 +471,13 @@ class SDistTestCase(PyPIRCCommandTestCase):
 | 
				
			||||||
        # making sure we have the good rights
 | 
					        # making sure we have the good rights
 | 
				
			||||||
        archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz')
 | 
					        archive_name = join(self.tmp_dir, 'dist', 'fake-1.0.tar.gz')
 | 
				
			||||||
        archive = tarfile.open(archive_name)
 | 
					        archive = tarfile.open(archive_name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # note that we are not testing the group ownership here
 | 
				
			||||||
 | 
					        # because, depending on the platforms and the container
 | 
				
			||||||
 | 
					        # rights (see #7408)
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            for member in archive.getmembers():
 | 
					            for member in archive.getmembers():
 | 
				
			||||||
                self.assertEquals(member.uid, os.getuid())
 | 
					                self.assertEquals(member.uid, os.getuid())
 | 
				
			||||||
                self.assertEquals(member.gid, os.getgid())
 | 
					 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            archive.close()
 | 
					            archive.close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue