mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. (#103681)
This commit is contained in:
		
							parent
							
								
									3d2a46845b
								
							
						
					
					
						commit
						916de04fd1
					
				
					 2 changed files with 15 additions and 24 deletions
				
			
		|  | @ -76,23 +76,12 @@ def test_for_top_level(self): | |||
|                     expect_content, | ||||
|                 ) | ||||
| 
 | ||||
|     @staticmethod | ||||
|     def _workaround_103661(tests): | ||||
|         """ | ||||
|         Skip failing test for now is it's failing on buildbot workers. | ||||
|         See https://github.com/python/cpython/issues/103661. | ||||
|         """ | ||||
|         import platform | ||||
|         if platform.system() == 'Windows': | ||||
|             tests.remove(('egg_with_no_modules-pkg', '\n')) | ||||
|         return tests | ||||
| 
 | ||||
|     def test_read_text(self): | ||||
|         tests = [ | ||||
|             ('egginfo-pkg', 'mod\n'), | ||||
|             ('egg_with_no_modules-pkg', '\n'), | ||||
|         ] | ||||
|         for pkg_name, expect_content in self._workaround_103661(tests): | ||||
|         for pkg_name, expect_content in tests: | ||||
|             with self.subTest(pkg_name): | ||||
|                 top_level = [ | ||||
|                     path for path in files(pkg_name) if path.name == 'top_level.txt' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jason R. Coombs
						Jason R. Coombs