Kaydet (Commit) f636e53e authored tarafından Michael Stahl's avatar Michael Stahl

unotest.py: call the magic bootstrap init function once only

Change-Id: I5f775234f44c23386af19f973a9f895a39fa31d5
üst 70e06397
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment