From 0ab745be9cd46e91c44a0f6d682519fe2e0601d5 Mon Sep 17 00:00:00 2001 From: Etienne Renault Date: Mon, 20 Apr 2015 11:18:33 +0200 Subject: [PATCH] Ignore difference in graphviz versions. * wrap/python/tests/ipnbdoctest.py: here. --- wrap/python/tests/ipnbdoctest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrap/python/tests/ipnbdoctest.py b/wrap/python/tests/ipnbdoctest.py index 4f399b10d..d4e828d90 100755 --- a/wrap/python/tests/ipnbdoctest.py +++ b/wrap/python/tests/ipnbdoctest.py @@ -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.