Correct test_builtin locale handling.

This commit is contained in:
Georg Brandl 2006-01-09 22:36:58 +00:00
parent b0cbf3009b
commit ed1e497fb2
1 changed files with 1 additions and 1 deletions

View 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