[Python-checkins] python/dist/src/Lib/test test_locale.py,1.4,1.5
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sun, 03 Nov 2002 09:20:41 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv11450/Lib/test
Modified Files:
test_locale.py
Log Message:
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
Index: test_locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_locale.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_locale.py 23 Jul 2002 19:03:56 -0000 1.4
--- test_locale.py 3 Nov 2002 17:20:09 -0000 1.5
***************
*** 39,42 ****
--- 39,44 ----
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)