X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestExportPart_PartSet.py;h=80bd61f106d69c2f10b5b880613e53a1d8ff4698;hb=refs%2Fheads%2FV9_11_BR;hp=1031a7949f8516b3d51ef8f8a8c52b4e326a3767;hpb=2c486d0efbe5964698014fbe7e1aea61c9bf2eab;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestExportPart_PartSet.py b/src/ExchangePlugin/Test/TestExportPart_PartSet.py index 1031a7949..80bd61f10 100644 --- a/src/ExchangePlugin/Test/TestExportPart_PartSet.py +++ b/src/ExchangePlugin/Test/TestExportPart_PartSet.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 CEA/DEN, EDF R&D +# Copyright (C) 2019-2023 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -63,10 +63,12 @@ model.end() import os -filename = model.tempFileName() -model.removeFile(filename) +filename = model.getTmpFileName('check_export', '.shaperpart') +model.removeTmpFile(filename) model.begin() model.exportPart(partSet, filename, [Axis_4.result()]) model.end() assert os.path.exists(filename), "ERROR: Cannot export construction elements of PartSet" + +model.removeTmpFile(filename)