From 1b341e578083b492c620bd468e20f28f2039bfd8 Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 25 Oct 2018 17:14:09 +0200 Subject: LibreLogo: add unit tests for program compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from LibreLogo to Python Change-Id: I39df100a13efe3573b33cb856701cbeb0d95954d Reviewed-on: https://gerrit.libreoffice.org/62364 Tested-by: Jenkins Reviewed-by: László Németh --- librelogo/source/LibreLogo/LibreLogo.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'librelogo/source') diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index 0dc5d7ea2ed7..8834baf8e640 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1735,6 +1735,9 @@ def __compil__(s): __loadlang__(_.lng, __l12n__(_.lng)) except: __trace__() + # for testing compiling, we create a not document based namespace + if "_" not in locals(): + _ = lambda: None _.lng = 'en_US' if not _.lng in __comp__: __loadlang__(_.lng, __l12n__(_.lng)) -- cgit