-# Copyright (C) 2019-2020 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
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()
model.importPart(partSet, filename)
model.end()
+model.removeTmpFile(filename)
+
# Test 1. No new Part should be created
assert(partSet.size(ModelAPI_ResultPart.group()) == 0)