X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportPart_ToEmptyPart.py;h=fe88770a57cc42921361eabe56f43927d09da0cd;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=d3f3fb4d468baf3e3bdec91ecfc8febdabcb46ac;hpb=380f01e1fce1a012267d604a1190d04bf4659447;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py index d3f3fb4d4..fe88770a5 100644 --- a/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py +++ b/src/ExchangePlugin/Test/TestImportPart_ToEmptyPart.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2020 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 @@ -67,8 +67,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() @@ -87,6 +87,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)