mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Make test__locale pass. Stupid bug in the original code: used 'is' for '=='.
This commit is contained in:
		
							parent
							
								
									af199faa9b
								
							
						
					
					
						commit
						f40e5762cc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -45,7 +45,7 @@ def numeric_tester(self, calc_type, calc_value, data_type, used_locale):
 | 
			
		|||
        except Error:
 | 
			
		||||
            set_locale = "<not able to determine>"
 | 
			
		||||
        known_value = known_numerics.get(used_locale,
 | 
			
		||||
                                    ('', ''))[data_type is 'thousands_sep']
 | 
			
		||||
                                    ('', ''))[data_type == 'thousands_sep']
 | 
			
		||||
        if known_value and calc_value:
 | 
			
		||||
            self.assertEquals(calc_value, known_value,
 | 
			
		||||
                                self.lc_numeric_err_msg % (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue