mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Remove the exceptions builtin module, all the exceptions are already builtin.
This commit is contained in:
		
							parent
							
								
									f543348fff
								
							
						
					
					
						commit
						2633c69fae
					
				
					 15 changed files with 34 additions and 66 deletions
				
			
		|  | @ -15,15 +15,6 @@ | |||
| 
 | ||||
| class ExceptionTests(unittest.TestCase): | ||||
| 
 | ||||
|     def testReload(self): | ||||
|         # Reloading the built-in exceptions module failed prior to Py2.2, while it | ||||
|         # should act the same as reloading built-in sys. | ||||
|         try: | ||||
|             import exceptions | ||||
|             reload(exceptions) | ||||
|         except ImportError as e: | ||||
|             self.fail("reloading exceptions: %s" % e) | ||||
| 
 | ||||
|     def raise_catch(self, exc, excname): | ||||
|         try: | ||||
|             raise exc, "spam" | ||||
|  | @ -289,7 +280,7 @@ def testAttributes(self): | |||
|                 if type(e) is not exc: | ||||
|                     raise | ||||
|                 # Verify module name | ||||
|                 self.assertEquals(type(e).__module__, 'exceptions') | ||||
|                 self.assertEquals(type(e).__module__, '__builtin__') | ||||
|                 # Verify no ref leaks in Exc_str() | ||||
|                 s = str(e) | ||||
|                 for checkArgName in expected: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz