[Python-checkins] r68628 - python/trunk/Lib/test/test__locale.py

benjamin.peterson python-checkins at python.org
Fri Jan 16 03:55:24 CET 2009


Author: benjamin.peterson
Date: Fri Jan 16 03:55:24 2009
New Revision: 68628

Log:
compare with == not is #4946

Modified:
   python/trunk/Lib/test/test__locale.py

Modified: python/trunk/Lib/test/test__locale.py
==============================================================================
--- python/trunk/Lib/test/test__locale.py	(original)
+++ python/trunk/Lib/test/test__locale.py	Fri Jan 16 03:55:24 2009
@@ -45,7 +45,7 @@
         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 % (


More information about the Python-checkins mailing list