Salome HOME
Use temporary name of exported file in tests related to Part's export/import
[modules/shaper.git] / src / ExchangePlugin / Test / TestImportPart_AfterLast_6.py
index 58dac780e6dfaef5fb2e177aa812284414b95de9..139022dc8a448d95759157207eaffc932f4b1250 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2019  CEA/DEN, EDF R&D
+# Copyright (C) 2019-2021  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
@@ -65,8 +65,8 @@ model.do()
 
 model.end()
 
-filename = 'check_export.shaperpart'
-model.removeFile(filename)
+filename = model.getTmpFileName('check_export', '.shaperpart')
+model.removeTmpFile(filename)
 
 # store the reference data
 features = [Box_1.feature(), Translation_1.feature()]