Ignore difference in graphviz versions.

* wrap/python/tests/ipnbdoctest.py: here.
This commit is contained in:
Etienne Renault 2015-04-20 11:18:33 +02:00
parent dc7ca7d8d2
commit 0ab745be9c

View file

@ -67,6 +67,9 @@ def sanitize(s):
# normalize UUIDs:
s = re.sub(r'[a-f0-9]{8}(\-[a-f0-9]{4}){3}\-[a-f0-9]{12}', 'U-U-I-D', s)
# normalize graphviz version
s = re.sub(r'Generated by graphviz version.*', 'VERSION', s)
# SVG generated by graphviz may put note at different positions
# depending on the graphviz build. Let's just strip anything that
# look like a position.