Salome HOME
updated copyright message
[modules/shaper.git] / src / ExchangePlugin / Test / TestExportPart_Results_1.py
index 7b1bd8a577c1b8440ef236c238a3efa8aedb8b2e..5177e52e23ea0ba1dae4a20c4f10f7aae48ebf35 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
@@ -63,8 +63,8 @@ model.end()
 
 import os
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 featureToExport = Point_2
 
@@ -72,3 +72,5 @@ model.begin()
 model.exportPart(partSet, filename, [featureToExport.result()])
 model.end()
 assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
+
+model.removeTmpFile(filename)