X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestExportPart_Results_3.py;h=6ab686f2c67da3f01a8ad74b1e4aac230205bfe6;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=591a87670b6caf52ab88a84d9def8c1dd7cc575b;hpb=1fd15bed1c62f994a3438bc4a12f44d0361f98c9;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_3.py b/src/ExchangePlugin/Test/TestExportPart_Results_3.py index 591a87670..6ab686f2c 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_3.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_3.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 CEA/DEN, EDF R&D +# Copyright (C) 2019-2023 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -63,8 +63,8 @@ model.end() import os -filename = 'check_export.shaperpart' -model.removeFile(filename) +filename = model.getTmpFileName('check_export', '.shaperpart') +model.removeTmpFile(filename) featureToExport = Sketch_1 @@ -72,3 +72,5 @@ model.begin() model.exportPart(Part_1_doc, filename, [featureToExport.result()]) model.end() assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name()) + +model.removeTmpFile(filename)