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:
commit
8c95d950af
4 changed files with 49 additions and 3 deletions
20
testscour.py
20
testscour.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue