Skip to content

Commit

Permalink
Exclude a failing test in PyPy.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 28, 2024
1 parent 613382e commit d2fca62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxml/tests/test_elementtree.py
Expand Up @@ -25,7 +25,7 @@

from .common_imports import (
BytesIO, etree, HelperTestCase,
ElementTree, cElementTree, ET_VERSION, CET_VERSION,
ElementTree, cElementTree, ET_VERSION, CET_VERSION, IS_PYPY,
filter_by_version, fileInTestDir, canonicalize, tmpfile,
_str, _bytes, unicode, IS_PYTHON2
)
Expand Down Expand Up @@ -4420,14 +4420,14 @@ def test_simple_xml(self, chunk_size=None):
self.assertEqual(root.tag, 'root')

def test_simple_xml_chunk_1(self):
if self.etree is not etree and pyexpat.version_info >= (2, 6, 0):
if self.etree is not etree and (pyexpat.version_info >= (2, 6, 0) or IS_PYPY):
raise unittest.SkipTest(
"Feeding the parser by too small chunks defers parsing"
)
self.test_simple_xml(chunk_size=1)

def test_simple_xml_chunk_5(self):
if self.etree is not etree and pyexpat.version_info >= (2, 6, 0):
if self.etree is not etree and (pyexpat.version_info >= (2, 6, 0) or IS_PYPY):
raise unittest.SkipTest(
"Feeding the parser by too small chunks defers parsing"
)
Expand Down

0 comments on commit d2fca62

Please sign in to comment.