X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestExportPart_FullPart_2.py;h=72812388077e6da50c0e243665f6bf6a6e317b9d;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=060ee5d622306e9a35472b6ff1c4ed13ea728cca;hpb=1fd15bed1c62f994a3438bc4a12f44d0361f98c9;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py b/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py index 060ee5d62..728123880 100644 --- a/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py +++ b/src/ExchangePlugin/Test/TestExportPart_FullPart_2.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 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,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(Part_2_doc, filename) model.end() assert os.path.exists(filename), "ERROR: Cannot export Part_2 to file {}".format(filename) + +model.removeTmpFile(filename)