Merge pull request #192 from nthykier/gh-189-order-vs-SVGLength

Work around an exception in removeDefaultAttributeValue() caused by some rarely used filter attributes that allow an optional second value which SVGLength does not handle properly
This commit is contained in:
Patrick Storz 2018-06-30 19:03:15 +02:00 committed by GitHub
commit 8c95d950af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 3 deletions

View file

@ -1570,6 +1570,26 @@ class RemoveDefaultGradFYValue(unittest.TestCase):
'fy matching cy not removed')
class RemoveDefaultAttributeOrderSVGLengthCrash(unittest.TestCase):
# Triggered a crash in v0.36
def runTest(self):
try:
scourXmlFile('unittests/remove-default-attr-order.svg')
except 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):
def runTest(self):