Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian
VTK
Commits
3bfe9914
Commit
3bfe9914
authored
9 years ago
by
Ben Boeckel
Committed by
David Gobbi
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
python3: add support in IOGeoJSON and IOParallelXML tests
parent
55ab30f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
IO/GeoJSON/Testing/Python/TestGeoJSONWriter.py
+4
-2
4 additions, 2 deletions
IO/GeoJSON/Testing/Python/TestGeoJSONWriter.py
IO/ParallelXML/Testing/Python/testParallelXMLWriters.py
+2
-0
2 additions, 0 deletions
IO/ParallelXML/Testing/Python/testParallelXMLWriters.py
with
6 additions
and
2 deletions
IO/GeoJSON/Testing/Python/TestGeoJSONWriter.py
+
4
−
2
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
:
...
...
This diff is collapsed.
Click to expand it.
IO/ParallelXML/Testing/Python/testParallelXMLWriters.py
+
2
−
0
View file @
3bfe9914
from
__future__
import
print_function
import
vtk
from
vtk.test
import
Testing
from
vtk.util.misc
import
vtkGetTempDir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment