From 21e6c7491b158e01327ae2d368a0cfa7f23a1740 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Wed, 31 Aug 2016 06:32:05 +0200 Subject: [PATCH] Fix a unittest that failed due to the increased accuracy of paths after 29e005bf7b7212fb68b9058879c73a3e88bdb07f --- testscour.py | 2 +- unittests/collapse-same-path-points.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testscour.py b/testscour.py index ba0ceba..ad02ec3 100755 --- a/testscour.py +++ b/testscour.py @@ -877,7 +877,7 @@ class RereferenceForRadialGradient(unittest.TestCase): class CollapseSamePathPoints(unittest.TestCase): def runTest(self): p = scour.scourXmlFile('unittests/collapse-same-path-points.svg').getElementsByTagNameNS(SVGNS, 'path')[0]; - self.assertEqual(p.getAttribute('d'), "m100 100l100.12 100.12c14.88 4.88-15.12-5.12 0 0z", + self.assertEqual(p.getAttribute('d'), "m100 100l100.12 100.12c14.877 4.8766-15.123-5.1234 0 0z", 'Did not collapse same path points') class ScourUnitlessLengths(unittest.TestCase): diff --git a/unittests/collapse-same-path-points.svg b/unittests/collapse-same-path-points.svg index bda0fff..b05f4d1 100644 --- a/unittests/collapse-same-path-points.svg +++ b/unittests/collapse-same-path-points.svg @@ -1,4 +1,4 @@ - +