X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FExchangePlugin%2FTest%2FTestExportPart_Results_1.py;h=5177e52e23ea0ba1dae4a20c4f10f7aae48ebf35;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=7b1bd8a577c1b8440ef236c238a3efa8aedb8b2e;hpb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_1.py b/src/ExchangePlugin/Test/TestExportPart_Results_1.py index 7b1bd8a57..5177e52e2 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_1.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_1.py @@ -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)