X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestExportPart_Results_8.py;h=fc73219f0a7a10f5de7f94c5a0363e14ef78ba77;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=1a03585150a62209fd4cb14938f6da7144d82892;hpb=69192b1ac7fbfedef36d95068a9407581fd87ea2;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestExportPart_Results_8.py b/src/ExchangePlugin/Test/TestExportPart_Results_8.py index 1a0358515..fc73219f0 100644 --- a/src/ExchangePlugin/Test/TestExportPart_Results_8.py +++ b/src/ExchangePlugin/Test/TestExportPart_Results_8.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 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 = Translation_1 @@ -72,3 +72,4 @@ model.begin() model.exportPart(Part_2_doc, filename, [featureToExport.result()]) model.end() assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name()) +model.removeTmpFile(filename)