From fc87e275faab37f3af3329c5d3e119426fd3c689 Mon Sep 17 00:00:00 2001 From: c-holtermann Date: Tue, 28 Apr 2020 19:09:42 +0200 Subject: [PATCH] further debugging --- bindings/python/tests/test_gettext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/python/tests/test_gettext.py b/bindings/python/tests/test_gettext.py index e69a6f8b91..7a81d5e64e 100644 --- a/bindings/python/tests/test_gettext.py +++ b/bindings/python/tests/test_gettext.py @@ -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__':