further debugging

This commit is contained in:
c-holtermann committed 2020-05-28 18:51:01 +02:00
1 parent 8d429d8295
commit fc87e275fa
1 file changed
+2 -1
+2 -1
View File
@@ -20,7 +20,8 @@ class TestGettext(TestCase):
def test_translation(self):
import inspect
raise MyException({'_(""): ':_(""), '_sw_core_utils.gnc_path_get_localedir(): ':_sw_core_utils.gnc_path_get_localedir(),'_.__doc__': _.__doc__, 'inspect: ': inspect.getsource(_)})
import locale
raise MyException({'_(""): ':_(""), '_sw_core_utils.gnc_path_get_localedir(): ':_sw_core_utils.gnc_path_get_localedir(),'_.__doc__': _.__doc__, 'inspect.getsource(_): ': inspect.getsource(_), '_("Welcome to GnuCash")':_("Welcome to GnuCash"), 'locale.getlocale(): ': locale.getlocale()})
self.assertTrue("Project-Id-Version: GnuCash" in _(""))
if __name__ == '__main__':