From b8b1bc4341410adf9839ce0630f524cef532a3ae Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 15 Jan 2024 17:10:11 +0000 Subject: [PATCH] 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 --- Tests/svgLib/path/path_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/svgLib/path/path_test.py b/Tests/svgLib/path/path_test.py index 0b82193dd..c92ca6801 100644 --- a/Tests/svgLib/path/path_test.py +++ b/Tests/svgLib/path/path_test.py @@ -7,7 +7,7 @@ from tempfile import NamedTemporaryFile SVG_DATA = """\ - + -""" +""".encode( + "utf-8" +) EXPECTED_PEN_COMMANDS = [ ("moveTo", ((100.0, 100.0),)),