diff options
-rw-r--r-- | pyuno/qa/pytests/testcollections_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pyuno/qa/pytests/testcollections_base.py b/pyuno/qa/pytests/testcollections_base.py index b3fcd2eb92f8..d3e8068820cf 100644 --- a/pyuno/qa/pytests/testcollections_base.py +++ b/pyuno/qa/pytests/testcollections_base.py @@ -13,13 +13,17 @@ import uno from org.libreoffice.unotest import pyuno from com.sun.star.beans import PropertyValue +testEnvironmentInitialized = False class CollectionsTestBase(unittest.TestCase): @classmethod def setUpClass(cls): cls.context = pyuno.getComponentContext() - pyuno.private_initTestEnvironment() + global testEnvironmentInitialized + if not testEnvironmentInitialized: + pyuno.private_initTestEnvironment() + testEnvironmentInitialized = True def setUp(self): self._components = [] |