summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_locale.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-03 17:20:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-03 17:20:12 (GMT)
commitf0a4668e6f23da6e60c58933f31250cabc7213d6 (patch)
tree9067bb0eccb339e9eb67b74f37c0d5541b1251e3 /Lib/test/test_locale.py
parentcf57e50989716143569473d5fd6d5a3a1c8cfea7 (diff)
downloadcpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.zip
cpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.tar.gz
cpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.tar.bz2
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r--Lib/test/test_locale.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py
index 2e056cf..46cbee2 100644
--- a/Lib/test/test_locale.py
+++ b/Lib/test/test_locale.py
@@ -38,5 +38,7 @@ try:
testformat("%20.f", -42, grouping=1, output=' -42')
testformat("%+10.f", -4200, grouping=1, output=' -4,200')
testformat("%-10.f", 4200, grouping=1, output='4,200 ')
+ # Invoke getpreferredencoding to make sure it does not cause exceptions,
+ locale.getpreferredencoding()
finally:
locale.setlocale(locale.LC_NUMERIC, oldlocale)