Blob Blame Raw
From 7901d9d773cc33452cf1a7219742c14427fa3421 Mon Sep 17 00:00:00 2001
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Mon, 15 Jul 2019 07:30:26 +0200
Subject: [PATCH] Skip 'test_pretty_print' test case due to Python 3.8 changes

This test is currently broken because of changes in XML attributes
sorting in Python 3.8 (see https://bugs.python.org/issue34160).
The order of the attributes is now different than the test case
expects and this test failure make the build fail with 3.8.
---
 tests/test_pretty_xml.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_pretty_xml.py b/tests/test_pretty_xml.py
index c004626..c96c2ea 100644
--- a/tests/test_pretty_xml.py
+++ b/tests/test_pretty_xml.py
@@ -14,6 +14,7 @@ from svgwrite.utils import pretty_xml, PYTHON3
 
 class TestPrettyXML(unittest.TestCase):
     def test_pretty_print(self):
+        self.skipTest("Temporary skipping due to XML pretty print changes in 3.8.")
         result = pretty_xml(XML_UGLY).split('\n')
         expect = XML_PRETTY.split('\n')
         for e, r in zip(expect, result):
@@ -61,4 +62,4 @@ XML_PRETTY = """<svg baseProfile="full" height="100%" version="1.1" viewBox="0,0
   <polyline fill="blue" points="7527.345,3836.175 7527.327,3344.688 7652.648,3344.688 7652.666,3836.175 7527.345,3836.175" stroke="black"/>
   <polyline fill="blue" points="7527.345,3836.175 7527.327,3344.688 7652.648,3344.688 7652.666,3836.175 7527.345,3836.175" stroke="black"/>
 </svg>
-"""
\ No newline at end of file
+"""
-- 
2.21.0