dbapi.py
branchstable
changeset 7960 981d2a6d95be
parent 7909 71c70bf482cf
child 7962 38ce8b8a980f
--- a/dbapi.py	Fri Oct 14 14:41:44 2011 +0200
+++ b/dbapi.py	Fri Oct 14 14:42:00 2011 +0200
@@ -313,7 +313,7 @@
         except KeyError:
             # this occurs usually during test execution
             self._ = self.__ = unicode
-            self.pgettext = lambda x, y: y
+            self.pgettext = lambda x, y: unicode(y)
         self.debug('request default language: %s', self.lang)
 
     # entities cache management ###############################################