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(''+''*200+''), data) + @skip_on_s390x def test_write_file_gzip_parse(self): tree = self.parse(_bytes(''+''*200+'')) with tempfile.NamedTemporaryFile() as f: