]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/Test/TestImportPart_AfterLast_1.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterLast_1.py
index 113e738bffe89c82a0663961d69b3cee85f6b51e..68fe20a443b8098f8c65ea5d512db86bc45bbc5a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019  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
@@ -64,8 +64,8 @@ model.do()
 
 model.end()
 
-filename = model.tempFileName()
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 # store the reference data
 features = [Point_2.feature(), Axis_4.feature()]
@@ -122,6 +122,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()