[pypy-svn] r60940 - pypy/trunk/lib-python/modified-2.5.2/test

fijal at codespeak.net fijal at codespeak.net
Wed Jan 14 11:44:33 CET 2009


Author: fijal
Date: Wed Jan 14 11:44:32 2009
New Revision: 60940

Added:
   pypy/trunk/lib-python/modified-2.5.2/test/test__locale.py
      - copied, changed from r60938, pypy/trunk/lib-python/2.5.2/test/test__locale.py
Log:
never ever use is to compare strings


Copied: pypy/trunk/lib-python/modified-2.5.2/test/test__locale.py (from r60938, pypy/trunk/lib-python/2.5.2/test/test__locale.py)
==============================================================================
--- pypy/trunk/lib-python/2.5.2/test/test__locale.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test__locale.py	Wed Jan 14 11:44:32 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 Pypy-commit mailing list