Salome HOME
Updated copyright comment
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterCurrent_2.py
index 3f75cb3d9d65ea663ad986ab782ade18c5a3f845..d2e2d37bd847412933a66e436d2799d0e6ed8635 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019  CEA/DEN, EDF R&D
+# Copyright (C) 2019-2024  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()
@@ -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()