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 % (
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to