mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	merge
This commit is contained in:
		
						commit
						df80914a1e
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -183,6 +183,10 @@ def test_everyone_has___loader__(self): | |||
|         # Issue #17098: all modules should have __loader__ defined. | ||||
|         for name, module in sys.modules.items(): | ||||
|             if isinstance(module, types.ModuleType): | ||||
|                 # pyexpat/xml.parsers.expat have submodules that it creates | ||||
|                 # by hand and do not set __loader__, which is acceptable. | ||||
|                 if 'expat' in name: | ||||
|                     continue | ||||
|                 self.assertTrue(hasattr(module, '__loader__'), | ||||
|                         '{!r} lacks a __loader__ attribute'.format(name)) | ||||
|                 if name in sys.builtin_module_names: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon