Skip to content
Snippets Groups Projects
Commit 3466320d authored by Daniel Hillier's avatar Daniel Hillier
Browse files

Skip failing pypy stdlib tests

parent cd757be1
No related branches found
No related tags found
1 merge request!3And incremental support to the witer
Pipeline #85277 failed
import io
import platform
import sys
import unittest
import unittest.case
......@@ -240,9 +241,28 @@
def test_initialize_parser_without_target(self):
super().test_initialize_parser_without_target()
@unittest.skipIf(
(
platform.python_implementation() == "PyPy"
and sys.version_info[:3] < (3, 10, 15)
),
"Functionality reverted but not picked up by PyPy yet",
)
def test_simpleops(self):
super().test_simpleops()
class BasicElementTest(test_xml_etree.BasicElementTest):
@unittest.skipIf(
platform.python_implementation() == "PyPy",
"Fails on pypy",
)
def test_pickle_issue18997(self):
super().test_pickle_issue18997()
class BugsTest(test_xml_etree.BugsTest):
@unittest.skipIf(sys.version_info[:2] < (3, 9), "Fails in py3.8")
def test_39495_treebuilder_start(self):
super().test_39495_treebuilder_start()
......@@ -243,9 +263,16 @@
class BugsTest(test_xml_etree.BugsTest):
@unittest.skipIf(sys.version_info[:2] < (3, 9), "Fails in py3.8")
def test_39495_treebuilder_start(self):
super().test_39495_treebuilder_start()
@unittest.skipIf(
platform.python_implementation() == "PyPy",
"sys.getrefcount doesn't exist",
)
def test_bug_xmltoolkit63(self):
super().test_bug_xmltoolkit63()
class XIncludeTest(test_xml_etree.XIncludeTest):
@unittest.skipIf(sys.version_info[:2] < (3, 9), "Fails in py3.8")
......@@ -329,6 +356,26 @@
fn = super().test_simple_xml
fn(chunk_size=chunk_size, flush=flush)
@unittest.skipIf(
(
platform.python_implementation() == "PyPy"
and sys.version_info[:3] < (3, 10, 15)
),
"Fails on PyPy at the moment",
)
def test_simple_xml_chunk_1(self):
super().test_simple_xml_chunk_1()
@unittest.skipIf(
(
platform.python_implementation() == "PyPy"
and sys.version_info[:3] < (3, 10, 15)
),
"Fails on PyPy at the moment",
)
def test_simple_xml_chunk_5(self):
super().test_simple_xml_chunk_5()
class BoolTest(test_xml_etree.BoolTest):
......
......@@ -4,6 +4,7 @@
import itertools
import operator
import pickle
import platform
import sys
import unittest
import unittest.case
......@@ -143,9 +144,14 @@
self.serialize_check(element, '<tag key="value"><subtag /></tag>') # 4
element.remove(subelement2)
self.serialize_check(element, '<tag key="value" />') # 5
with self.assertRaises(ValueError) as cm:
element.remove(subelement)
self.assertEqual(str(cm.exception), 'list.remove(x): x not in list')
if not (
platform.python_implementation() == "PyPy"
and sys.version_info[:3] < (3, 10, 15)
):
# Functionality reverted but not picked up by PyPy yet
with self.assertRaises(ValueError) as cm:
element.remove(subelement)
self.assertEqual(str(cm.exception), 'list.remove(x): x not in list')
self.serialize_check(element, '<tag key="value" />') # 6
subelement3 = copy.copy(subelement)
element[0:0] = [subelement, subelement2, subelement3]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment