X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportPart_AfterLast_2.py;h=bf2e95864f59abecbb2a9a1508b8e3381743f751;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=218612e6c16d4b8f94f0151a7e830da3d04b6042;hpb=77d6e03555d0d46232e09ace4178f66f8c9b40ee;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py b/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py index 218612e6c..bf2e95864 100644 --- a/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py +++ b/src/ExchangePlugin/Test/TestImportPart_AfterLast_2.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019 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 @@ -65,8 +65,8 @@ model.do() model.end() -filename = 'check_export.shaperpart' -model.removeFile(filename) +filename = model.getTmpFileName('check_export', '.shaperpart') +model.removeTmpFile(filename) featureToExport = Sketch_1 @@ -127,6 +127,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()