Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterLast_6.py
index 98baa99872a4d906e990c40d55a5e7f5b0c161ee..154749c25265fd6d0af181ed184244789aef540d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2020  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
@@ -65,8 +65,8 @@ 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 = [Box_1.feature(), Translation_1.feature()]
@@ -123,6 +123,8 @@ model.begin()
 model.importPart(Part_1_doc, filename)
 model.end()
 
+model.removeTmpFile(filename)
+
 # compare results with the reference data
 TOLERANCE = 1.e-7
 features = Part_1_doc.allFeatures()