diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-08-06 11:48:41 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-08-06 13:22:58 +0200 |
commit | f636e53ea9d120ffd3e2cd9c771d6363642d0809 (patch) | |
tree | 86c766c3ca0743331c3579fd61bc31826d6036dc /unotest | |
parent | 70e06397ac48b79487f6ce4ff1e0517e922fa73f (diff) |
unotest.py: call the magic bootstrap init function once only
Change-Id: I5f775234f44c23386af19f973a9f895a39fa31d5
Diffstat (limited to 'unotest')
-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 |