X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportPart_ToEmptyPartSet.py;h=1d8bda0f64add85332bdcdfcd8879a6a81b262a9;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=b0f2a13b248e4f2de8cd91c2d39d7ab0cfe985b0;hpb=88ee9b2b81cf93a6324336b57e30cc8a3a487499;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py index b0f2a13b2..1d8bda0f6 100644 --- a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py +++ b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPartSet.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2022 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 @@ -85,6 +85,8 @@ partSet = model.moduleDocument() model.importPart(partSet, filename) model.end() +model.removeTmpFile(filename) + # Test 1. New Part should be created assert(partSet.size(ModelAPI_ResultPart.group()) == 1) newPart = modelAPI_ResultPart(objectToResult(partSet.object(ModelAPI_ResultPart.group(), 0)))