Skip to content
Snippets Groups Projects
Commit 06929cad authored by Scott Wittenburg's avatar Scott Wittenburg
Browse files

Fix test which is failing on some machines

parent 09ec70ac
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,10 @@ from vtk.test import Testing
class TestObjectId(Testing.vtkTest):
def testObjId(self):
# Just make sure if we call it twice with None, the results match
objId1 = vtkWebApplication.GetObjectId(None)
self.assertEqual(objId1, '0')
objId1b = vtkWebApplication.GetObjectId(None)
self.assertTrue(objId1 == objId1b)
polyData = vtk.vtkPolyData()
objId2 = vtkWebApplication.GetObjectId(polyData)
......@@ -13,7 +15,7 @@ class TestObjectId(Testing.vtkTest):
points = polyData.GetPoints()
objId3 = vtkWebApplication.GetObjectId(points)
self.assertEqual(objId3, '0')
self.assertTrue(objId3 == '0' or objId3 == '0x0')
if __name__ == "__main__":
Testing.main([(TestObjectId, 'test')])
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