]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/Test/TestImportPart_AfterCurrent_2.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterCurrent_2.py
index 5742c570feef9da8e9e55606103d688ee768b6be..2ebcc3c5ba4dd56121e889808e7c2b1ba2657cd8 100644 (file)
@@ -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
@@ -34,8 +34,8 @@ Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), mod
 model.do()
 model.end()
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 # store the reference data
 features = Part_1_doc.allFeatures()
@@ -94,6 +94,8 @@ model.begin()
 model.importPart(Part_1_doc, filename, Extrusion_1)
 model.end()
 
+model.removeTmpFile(filename)
+
 # compare results with the reference data
 TOLERANCE = 1.e-7
 features = Part_1_doc.allFeatures()