diff options
-rw-r--r-- | unotest/source/python/org/libreoffice/unotest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py index f0a43b1b1690..f364219458ac 100644 --- a/unotest/source/python/org/libreoffice/unotest.py +++ b/unotest/source/python/org/libreoffice/unotest.py @@ -170,6 +170,8 @@ class UnoRemoteConnection: finally: self.connection = None +havePonies = False + class UnoInProcess: def getContext(self): return self.xContext @@ -177,7 +179,10 @@ class UnoInProcess: return self.xDoc def setUp(self): self.xContext = pyuno.getComponentContext() - pyuno.private_initTestEnvironment() + global havePonies + if not(havePonies): + pyuno.private_initTestEnvironment() + havePonies = True def openEmptyWriterDoc(self): assert(self.xContext) smgr = self.getContext().ServiceManager |