]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/Test/TestImportPart_Construction_2.py
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_Construction_2.py
index acb76f9ec5bbc8e8106ee9835073cb228785e9b0..2f8c0c9923a53510d54939436b5808efab6070a7 100644 (file)
@@ -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()