Salome HOME
Remove temporary files after test execution
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterLast_2.py
index 751a056c5dd109bfa7a6fd3430927bc48540802e..f26bea8ba8518845eb220aded3534f45bab9885c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2020  CEA/DEN, EDF R&D
+# Copyright (C) 2019-2022  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
@@ -65,8 +65,8 @@ model.do()
 
 model.end()
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 featureToExport = Sketch_1
 
@@ -127,6 +127,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()