Kaydet (Commit) f40e5762 authored tarafından Guido van Rossum's avatar Guido van Rossum

Make test__locale pass. Stupid bug in the original code: used 'is' for '=='.

üst af199faa
......@@ -45,7 +45,7 @@ class _LocaleTests(unittest.TestCase):
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 % (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment