X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportPart_AfterLast_4.py;h=4d490ceea5a287ff4a36c87e408db9d847001a9c;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=cb6a8cc7c38ea3e61c903ff5dd032666ab040e95;hpb=745c72679f6346375d5e886b25cc3865f3c4daae;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py index cb6a8cc7c..4d490ceea 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 CEA/DEN, EDF R&D +# Copyright (C) 2019-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -64,8 +64,8 @@ model.do() model.end() -filename = 'check_export.shaperpart' -model.removeFile(filename) +filename = model.getTmpFileName('check_export', '.shaperpart') +model.removeTmpFile(filename) featureToExport = Translation_1 @@ -123,6 +123,8 @@ model.begin() model.importPart(Part_1_doc, filename) model.end() +model.removeTmpFile(filename) + # compare results with the reference data TOLERANCE = 1.e-7 features = Part_1_doc.allFeatures()