[Python-3000-checkins] r55415 - python/branches/py3k-struni/Lib/test/test__locale.py

guido.van.rossum python-3000-checkins at python.org
Thu May 17 22:58:36 CEST 2007


Author: guido.van.rossum
Date: Thu May 17 22:58:33 2007
New Revision: 55415

Modified:
   python/branches/py3k-struni/Lib/test/test__locale.py
Log:
Make test__locale pass.  Stupid bug in the original code: used 'is' for '=='.


Modified: python/branches/py3k-struni/Lib/test/test__locale.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test__locale.py	(original)
+++ python/branches/py3k-struni/Lib/test/test__locale.py	Thu May 17 22:58:33 2007
@@ -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-3000-checkins mailing list