Skip to content
Snippets Groups Projects
Commit 93e821f5 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

fixup python testing

parent 104bcfaa
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,12 @@ def compareImage(renwin, img_fname, threshold=10):
w2if.ReadFrontBufferOff()
w2if.SetInput(renwin)
w2if.Update()
return compareImageWithSavedImage(w2if, img_fname, threshold)
try:
compareImageWithSavedImage(w2if, img_fname, threshold)
except RuntimeError:
w2if.ReadFrontBufferOn()
compareImageWithSavedImage(w2if, img_fname, threshold)
return
def _printCDashImageError(img_err, err_index, img_base):
......
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