From: Guido van Rossum Date: Thu, 17 May 2007 20:58:33 +0000 (+0000) Subject: Make test__locale pass. Stupid bug in the original code: used 'is' for '=='. X-Git-Tag: v3.0a1~935 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f40e5762cc57f6228c23643b110932305cf6b15c;p=thirdparty%2FPython%2Fcpython.git Make test__locale pass. Stupid bug in the original code: used 'is' for '=='. --- diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py index ec59d7121b1d..69fc6253b4c3 100644 --- a/Lib/test/test__locale.py +++ b/Lib/test/test__locale.py @@ -45,7 +45,7 @@ class _LocaleTests(unittest.TestCase): except Error: set_locale = "" 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 % (