sd/qa/uitest/impress_tests2/tdf170386.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 54b76f7ca0ba07b3a8630ebcd30ea091050f0812
Author:     Mike Kaganski <[email protected]>
AuthorDate: Fri Feb 13 06:47:52 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Fri Feb 13 08:23:44 2026 +0100

    Avoid parameter introduced in Python 3.12
    
    As Stephan noted in
    https://gerrit.libreoffice.org/c/core/+/198187/comment/95cda76c_b49b294c/:
    
    > The delete_on_close parameter only got introduced in Python
    > 3.12 (see <https://docs.python.org/3/library/tempfile.html>),
    > while per our README.md: "The baseline for Python is version
    > 3.11." Which causes an issue for
    > <https://ci.libreoffice.org//job/lo_tb_master_linux_dbg/54140/>,
    
    Change-Id: I3caa375688209594016dcf8106219fae80c42f53
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199313
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sd/qa/uitest/impress_tests2/tdf170386.py 
b/sd/qa/uitest/impress_tests2/tdf170386.py
index 6fe3d0e56aee..9960070f5a2a 100644
--- a/sd/qa/uitest/impress_tests2/tdf170386.py
+++ b/sd/qa/uitest/impress_tests2/tdf170386.py
@@ -28,8 +28,7 @@ class tdf170386(UITestCase):
         # object used to collect text properties on save wasn't notified on 
the changes that
         # happened when the model was locked.
 
-        with tempfile.NamedTemporaryFile(suffix=".odg", delete_on_close=False) 
as temp:
-            temp.close()
+        with tempfile.NamedTemporaryFile(suffix=".odg") as temp:
             url = pathlib.Path(temp.name).as_uri()
 
             with self.ui_test.create_doc_in_start_center("draw") as xModel:

Reply via email to