Skip to content
Snippets Groups Projects
Commit 3bfe9914 authored by Ben Boeckel's avatar Ben Boeckel Committed by David Gobbi
Browse files

python3: add support in IOGeoJSON and IOParallelXML tests

parent 55ab30f9
No related branches found
No related tags found
No related merge requests found
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:
......
from __future__ import print_function
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetTempDir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment