Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterCurrent_1.py
index 2521fdfe4edd0fbd7757e1b034dfe0d38585438e..f86281c337471281f2f89dea269cac5424d28d88 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2021  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
@@ -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()
@@ -95,6 +95,8 @@ model.begin()
 model.importPart(Part_1_doc, filename, Sketch_1)
 model.end()
 
+model.removeTmpFile(filename)
+
 # compare results with the reference data
 TOLERANCE = 1.e-7
 features = Part_1_doc.allFeatures()