Salome HOME
Use temporary name of exported file in tests related to Part's export/import
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_Construction_4.py
index 642a15443bbbb0dd0bbbfea8cca4fb4298950d44..b9394c249e195c3bd35566d943b1da2a8d103eea 100644 (file)
@@ -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()