From 127b77fb25e096f0ef49ada0e6af95d8b022a34a Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 11 Mar 2015 23:43:27 +0100 Subject: [PATCH] python: be more robust to different graphviz version in tests * wrap/python/tests/ipnbdoctest.py: Ignore anything that look like an SVG coordinate to compare outputs. --- wrap/python/tests/ipnbdoctest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wrap/python/tests/ipnbdoctest.py b/wrap/python/tests/ipnbdoctest.py index 4b14f4400..bce5e3fa3 100755 --- a/wrap/python/tests/ipnbdoctest.py +++ b/wrap/python/tests/ipnbdoctest.py @@ -67,6 +67,13 @@ 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) + # 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. + s = re.sub(r'