Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_ToEmptyPart.py
index d3f3fb4d468baf3e3bdec91ecfc8febdabcb46ac..fe88770a57cc42921361eabe56f43927d09da0cd 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
@@ -67,8 +67,8 @@ for feat in features:
         res.append(GeomAlgoAPI_ShapeTools.volume(r.shape()))
     refData.append( (feat.getKind(), res) )
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 # emport the document
 model.begin()
@@ -87,6 +87,8 @@ Part_1_doc = Part_1.document()
 model.importPart(Part_1_doc, filename)
 model.end()
 
+model.removeTmpFile(filename)
+
 # Test 1. No new Part should be created
 assert(partSet.size(ModelAPI_ResultPart.group()) == 1)