saltbundlepy-lxml/skip_failing_test_s390x.patch

32 lines
1.0 KiB
Diff

Index: lxml-4.9.2/src/lxml/tests/test_etree.py
===================================================================
--- lxml-4.9.2.orig/src/lxml/tests/test_etree.py
+++ lxml-4.9.2/src/lxml/tests/test_etree.py
@@ -10,7 +10,7 @@ test_elementtree
from __future__ import absolute_import
from collections import OrderedDict
-import os.path
+import os
import unittest
import copy
import sys
@@ -47,6 +47,9 @@ except NameError:
# Python 3
_unicode = str
+skip_on_s390x = unittest.skipIf(hasattr(os, 'uname') and os.uname().machine == 's390x',
+ 'skipped on s390x')
+
class ETreeOnlyTestCase(HelperTestCase):
"""Tests only for etree, not ElementTree"""
@@ -5275,6 +5278,7 @@ class ETreeWriteTestCase(HelperTestCase)
self.assertEqual(_bytes('<a>'+'<b/>'*200+'</a>'),
data)
+ @skip_on_s390x
def test_write_file_gzip_parse(self):
tree = self.parse(_bytes('<a>'+'<b/>'*200+'</a>'))
with tempfile.NamedTemporaryFile() as f: