Salome HOME
Updated copyright comment
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_Construction_1.py
index 45b0529b6c0e472a3afb1d66150ded6539f16149..230406012af305477f867f86a16c295739857c4c 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
@@ -49,8 +49,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()
@@ -67,6 +67,8 @@ partSet = model.moduleDocument()
 model.importPart(partSet, filename)
 model.end()
 
+model.removeTmpFile(filename)
+
 # Test 1. No Part should be created
 assert(partSet.size(ModelAPI_ResultPart.group()) == 0)