]> granicus.if.org Git - python/commitdiff
compare with == not is #4946
authorBenjamin Peterson <benjamin@python.org>
Fri, 16 Jan 2009 02:55:24 +0000 (02:55 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 16 Jan 2009 02:55:24 +0000 (02:55 +0000)
Lib/test/test__locale.py

index ec59d7121b1d3c01169e4073d7f4443c589989d5..69fc6253b4c3cafd2e1e783767af674583703eb3 100644 (file)
@@ -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 % (