Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
3bfe9914
Commit
3bfe9914
authored
Aug 18, 2015
by
Ben Boeckel
⛰
Committed by
David Gobbi
Aug 20, 2015
Browse files
python3: add support in IOGeoJSON and IOParallelXML tests
parent
55ab30f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
IO/GeoJSON/Testing/Python/TestGeoJSONWriter.py
View file @
3bfe9914
from
__future__
import
print_function
import
vtk
,
os
,
sys
from
vtk.test
import
Testing
...
...
@@ -40,13 +42,13 @@ for datasetString in testwrites:
os
.
path
.
isfile
(
fname
)):
os
.
remove
(
fname
)
else
:
print
"Failed to write "
+
fname
+
" to file"
print
(
"Failed to write "
+
fname
+
" to file"
)
failed
=
True
gw
.
WriteToOutputStringOn
()
gw
.
Write
()
gj
=
"['"
+
str
(
gw
.
RegisterAndGetOutputString
()).
replace
(
'
\n
'
,
''
)
+
"']"
if
len
(
gj
)
<=
1000
:
print
"Failed to write "
+
fname
+
" to buffer"
print
(
"Failed to write "
+
fname
+
" to buffer"
)
failed
=
True
if
failed
:
...
...
IO/ParallelXML/Testing/Python/testParallelXMLWriters.py
View file @
3bfe9914
from
__future__
import
print_function
import
vtk
from
vtk.test
import
Testing
from
vtk.util.misc
import
vtkGetTempDir
...
...
David Gobbi
@dgobbi
mentioned in commit
0589e57d
·
Aug 22, 2015
mentioned in commit
0589e57d
mentioned in commit 0589e57d9a9bef10d4cb3a4555db0b8c494dac9e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment