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 2104626 commit ccf6e4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxml/tests/test_elementtree.py
Expand Up @@ -21,7 +21,7 @@

from .common_imports import (
BytesIO, etree, HelperTestCase,
ElementTree, ET_VERSION,
ElementTree, ET_VERSION, IS_PYPY,
filter_by_version, fileInTestDir, canonicalize, tmpfile,
)

Expand Down Expand Up @@ -4407,14 +4407,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 ccf6e4d

Please sign in to comment.