summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gettext.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-14 14:32:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-14 14:32:15 (GMT)
commit801844d6fc8b48cfa969dd2573bd522a2b26f974 (patch)
treeb792e1b3b54ed2dd3386e0ff58ffb3c9ef1d9d02 /Lib/test/test_gettext.py
parentfbe94c55ca482bc30a831f8319bdc2074124a4e3 (diff)
downloadcpython-801844d6fc8b48cfa969dd2573bd522a2b26f974.zip
cpython-801844d6fc8b48cfa969dd2573bd522a2b26f974.tar.gz
cpython-801844d6fc8b48cfa969dd2573bd522a2b26f974.tar.bz2
#2512 implement the 3.0 gettext API
All the u* gettext variants were renamed to their none u* variants, since there's no point in translating to byte strings. I also killed off the unicode parameters for install
Diffstat (limited to 'Lib/test/test_gettext.py')
-rw-r--r--Lib/test/test_gettext.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index 73c9c1c..6ee608e 100644
--- a/Lib/test/test_gettext.py
+++ b/Lib/test/test_gettext.py
@@ -143,13 +143,13 @@ trggrkg zrffntr pngnybt yvoenel.''')
t.install()
eq(_('nudge nudge'), 'wink wink')
# Try unicode return type
- t.install(str=True)
+ t.install()
eq(_('mullusk'), 'bacon')
# Test installation of other methods
import builtins
- t.install(str=True, names=["gettext", "lgettext"])
- eq(_, t.ugettext)
- eq(builtins.gettext, t.ugettext)
+ t.install(names=["gettext", "lgettext"])
+ eq(_, t.gettext)
+ eq(builtins.gettext, t.gettext)
eq(lgettext, t.lgettext)
del builtins.gettext
del builtins.lgettext
@@ -305,7 +305,7 @@ class UnicodeTranslationsTest(GettextBaseTest):
self.t = gettext.GNUTranslations(fp)
finally:
fp.close()
- self._ = self.t.ugettext
+ self._ = self.t.gettext
def test_unicode_msgid(self):
unless = self.failUnless