Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/shaper.git]
/
src
/
ExchangePlugin
/
Test
/
TestImportPart_AfterLast_4.py
diff --git
a/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py
b/src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py
index b72b9456b194bad4c238638c30bec9ea6f457393..4d490ceea5a287ff4a36c87e408db9d847001a9c 100644
(file)
--- a/
src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py
+++ b/
src/ExchangePlugin/Test/TestImportPart_AfterLast_4.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2019-202
0 CEA/DEN, EDF R&D
+# Copyright (C) 2019-202
4 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-64,8
+64,8
@@
model.do()
model.end()
model.end()
-filename =
'check_export.shaperpart'
-model.removeFile(filename)
+filename =
model.getTmpFileName('check_export', '.shaperpart')
+model.remove
Tmp
File(filename)
featureToExport = Translation_1
featureToExport = Translation_1
@@
-123,6
+123,8
@@
model.begin()
model.importPart(Part_1_doc, filename)
model.end()
model.importPart(Part_1_doc, filename)
model.end()
+model.removeTmpFile(filename)
+
# compare results with the reference data
TOLERANCE = 1.e-7
features = Part_1_doc.allFeatures()
# compare results with the reference data
TOLERANCE = 1.e-7
features = Part_1_doc.allFeatures()