X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportPart_Construction_4.py;h=d64d3136862ccc8dd80989451d61a888bbf2bbfd;hb=8f8cca340a8eb75d742c2e34c4265dd5b3f56628;hp=642a15443bbbb0dd0bbbfea8cca4fb4298950d44;hpb=1fd15bed1c62f994a3438bc4a12f44d0361f98c9;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportPart_Construction_4.py b/src/ExchangePlugin/Test/TestImportPart_Construction_4.py index 642a15443..d64d31368 100644 --- a/src/ExchangePlugin/Test/TestImportPart_Construction_4.py +++ b/src/ExchangePlugin/Test/TestImportPart_Construction_4.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 CEA/DEN, EDF R&D +# Copyright (C) 2019-2022 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -51,8 +51,8 @@ for feat in features: res.append(GeomAlgoAPI_ShapeTools.volume(r.shape())) refData.append( (feat.getKind(), res) ) -filename = 'check_export.shaperpart' -model.removeFile(filename) +filename = model.getTmpFileName('check_export', '.shaperpart') +model.removeTmpFile(filename) # emport the document model.begin() @@ -71,6 +71,8 @@ Part_1_doc = Part_1.document() model.importPart(Part_1_doc, filename) model.end() +model.removeTmpFile(filename) + # Test 1. No new Part should be created assert(partSet.size(ModelAPI_ResultPart.group()) == 1)