path_test: fix parsing xml declaration
the latest lxml.etree.fromstring complains with syntax error when the xml declaration contain 'standalone' but does not contain encoding, apparently the xml declaration attributes have predefined order
This commit is contained in:
parent
a17f3d460a
commit
b8b1bc4341
@ -7,7 +7,7 @@ from tempfile import NamedTemporaryFile
|
|||||||
|
|
||||||
|
|
||||||
SVG_DATA = """\
|
SVG_DATA = """\
|
||||||
<?xml version="1.0" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||||
@ -15,7 +15,9 @@ SVG_DATA = """\
|
|||||||
<path d="M 100 100 L 300 100 L 200 300 z"/>
|
<path d="M 100 100 L 300 100 L 200 300 z"/>
|
||||||
<path d="M100,200 C100,100 250,100 250,200 S400,300 400,200"/>
|
<path d="M100,200 C100,100 250,100 250,200 S400,300 400,200"/>
|
||||||
</svg>
|
</svg>
|
||||||
"""
|
""".encode(
|
||||||
|
"utf-8"
|
||||||
|
)
|
||||||
|
|
||||||
EXPECTED_PEN_COMMANDS = [
|
EXPECTED_PEN_COMMANDS = [
|
||||||
("moveTo", ((100.0, 100.0),)),
|
("moveTo", ((100.0, 100.0),)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user