mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Make the test of chr() overflow pass.
(Sigh. There are so many redundant tests.)
This commit is contained in:
		
							parent
							
								
									72e110c1cd
								
							
						
					
					
						commit
						e63bae6b09
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -99,7 +99,7 @@ def testRaising(self): | ||||||
|         except TypeError: pass |         except TypeError: pass | ||||||
| 
 | 
 | ||||||
|         self.raise_catch(ValueError, "ValueError") |         self.raise_catch(ValueError, "ValueError") | ||||||
|         self.assertRaises(ValueError, chr, sys.maxunicode+1) |         self.assertRaises(ValueError, chr, 17<<16) | ||||||
| 
 | 
 | ||||||
|         self.raise_catch(ZeroDivisionError, "ZeroDivisionError") |         self.raise_catch(ZeroDivisionError, "ZeroDivisionError") | ||||||
|         try: x = 1/0 |         try: x = 1/0 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum