mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Nit: integer division should use //, not /
This commit is contained in:
		
							parent
							
								
									6736cf8d20
								
							
						
					
					
						commit
						a7e734fcee
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -681,7 +681,7 @@ def test_float_conversion(self):
 | 
				
			||||||
        # behaviour near extremes of floating-point range
 | 
					        # behaviour near extremes of floating-point range
 | 
				
			||||||
        long_dbl_max = long(DBL_MAX)
 | 
					        long_dbl_max = long(DBL_MAX)
 | 
				
			||||||
        top_power = 2**DBL_MAX_EXP
 | 
					        top_power = 2**DBL_MAX_EXP
 | 
				
			||||||
        halfway = (long_dbl_max + top_power)/2
 | 
					        halfway = (long_dbl_max + top_power)//2
 | 
				
			||||||
        self.assertEqual(float(long_dbl_max), DBL_MAX)
 | 
					        self.assertEqual(float(long_dbl_max), DBL_MAX)
 | 
				
			||||||
        self.assertEqual(float(long_dbl_max+1), DBL_MAX)
 | 
					        self.assertEqual(float(long_dbl_max+1), DBL_MAX)
 | 
				
			||||||
        self.assertEqual(float(halfway-1), DBL_MAX)
 | 
					        self.assertEqual(float(halfway-1), DBL_MAX)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue