Avoid crashing on stdDeviation attribute

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2018-04-21 06:38:28 +00:00
parent c504891bd7
commit 8a2892b458
3 changed files with 24 additions and 2 deletions

View file

@ -1577,7 +1577,17 @@ class RemoveDefaultAttributeOrderSVGLengthCrash(unittest.TestCase):
try:
scourXmlFile('unittests/remove-default-attr-order.svg')
except AttributeError:
self.fail("Processing the order attribute triggered an AttributeError ")
self.fail("Processing the order attribute triggered an AttributeError")
class RemoveDefaultAttributeStdDeviationSVGLengthCrash(unittest.TestCase):
# Triggered a crash in v0.36
def runTest(self):
try:
scourXmlFile('unittests/remove-default-attr-std-deviation.svg')
except AttributeError:
self.fail("Processing the order attribute triggered an AttributeError")
class CDATAInXml(unittest.TestCase):