]> granicus.if.org Git - python/commitdiff
Correct test_builtin locale handling.
authorGeorg Brandl <georg@python.org>
Mon, 9 Jan 2006 22:36:58 +0000 (22:36 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 9 Jan 2006 22:36:58 +0000 (22:36 +0000)
Lib/test/test_builtin.py

index 62489729a05a06b2c3c8f8b6ed7fd674c5ccc026..7fdc063f1f975839027790d0722ca67897488060 100644 (file)
@@ -557,7 +557,7 @@ class BuiltinTest(unittest.TestCase):
         # set locale to something that doesn't use '.' for the decimal point
         try:
             import locale
-            orig_locale = locale.setlocale(locale.LC_NUMERIC, '')
+            orig_locale = locale.setlocale(locale.LC_NUMERIC)
             locale.setlocale(locale.LC_NUMERIC, 'fr_FR')
         except:
             # if we can't set the locale, just ignore this test