mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Skip test if zlib not present. Closes #11498. Patch by Natalia B. Bidart.
This commit is contained in:
		
							parent
							
								
									4169826a00
								
							
						
					
					
						commit
						91f0359ee4
					
				
					 3 changed files with 3 additions and 1 deletions
				
			
		|  | @ -240,7 +240,7 @@ def get_source(cls, fullname): | ||||||
|     @classmethod |     @classmethod | ||||||
|     @_requires_builtin |     @_requires_builtin | ||||||
|     def is_package(cls, fullname): |     def is_package(cls, fullname): | ||||||
|         """Return None as built-in module are never packages.""" |         """Return None as built-in modules are never packages.""" | ||||||
|         return False |         return False | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -489,6 +489,7 @@ def test_close_on_exception(self): | ||||||
|         except zipfile.BadZipFile: |         except zipfile.BadZipFile: | ||||||
|             self.assertTrue(zipfp2.fp is None, 'zipfp is not closed') |             self.assertTrue(zipfp2.fp is None, 'zipfp is not closed') | ||||||
| 
 | 
 | ||||||
|  |     @skipUnless(zlib, "requires zlib") | ||||||
|     def test_unicode_filenames(self): |     def test_unicode_filenames(self): | ||||||
|         # bug #10801 |         # bug #10801 | ||||||
|         fname = findfile('zip_cp437_header.zip') |         fname = findfile('zip_cp437_header.zip') | ||||||
|  |  | ||||||
|  | @ -80,6 +80,7 @@ Eric Beser | ||||||
| Steven Bethard | Steven Bethard | ||||||
| Stephen Bevan | Stephen Bevan | ||||||
| Ron Bickers | Ron Bickers | ||||||
|  | Natalia B. Bidart | ||||||
| Adrian von Bidder | Adrian von Bidder | ||||||
| David Binger | David Binger | ||||||
| Dominic Binks | Dominic Binks | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Eric V. Smith
						Eric V. Smith