internals.py 416 B

12345678910
  1. r"""private module with utilities to be used by modules in this package alone"""
  2. def compare(test_image, baseline_image):
  3. from vtkmodules.vtkTestingRendering import vtkTesting
  4. testing = vtkTesting()
  5. testing.AddArgument("-V")
  6. testing.AddArgument(baseline_image)
  7. if testing.RegressionTest(test_image, 10) == vtkTesting.FAILED:
  8. raise RuntimeError("Regression test failed!")
  9. return True