dbapi.py
changeset 7962 38ce8b8a980f
parent 7920 5146c63e8e34
parent 7960 981d2a6d95be
child 8190 2a3c1b787688
child 8238 087bb529035c
--- a/dbapi.py	Fri Oct 14 15:19:25 2011 +0200
+++ b/dbapi.py	Fri Oct 14 16:42:10 2011 +0200
@@ -332,7 +332,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 ###############################################