diff options
Diffstat (limited to 'unotest/source/python/org/libreoffice/unotest.py')
-rw-r--r-- | unotest/source/python/org/libreoffice/unotest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py index 13b00845bb36..38c6b2266b31 100644 --- a/unotest/source/python/org/libreoffice/unotest.py +++ b/unotest/source/python/org/libreoffice/unotest.py @@ -182,6 +182,9 @@ class UnoInProcess: global havePonies if not(havePonies): pyuno.private_initTestEnvironment() + # note: this will be called early enough, from Py_Finalize + import atexit + atexit.register(pyuno.private_initTestEnvironment, False) havePonies = True def openEmptyWriterDoc(self): assert(self.xContext) |