Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestExportPart_PartSet.py
index 3c8b14257c1435d1009f20882214aea63473a2fd..dc88a26e89d974d08da628fdae9d68a255e73427 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019  CEA/DEN, EDF R&D
+# Copyright (C) 2019-2023  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
@@ -63,10 +63,12 @@ model.end()
 
 import os
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 model.begin()
 model.exportPart(partSet, filename, [Axis_4.result()])
 model.end()
 assert os.path.exists(filename), "ERROR: Cannot export construction elements of PartSet"
+
+model.removeTmpFile(filename)