Skip to content

Commit 163c3a8

Browse files
committed
Marked test_exceptions_mutate_original_sequence as xfail on pypy3.11
1 parent a176574 commit 163c3a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,14 @@ class MyExceptionGroup(base, MyException):
866866
) # does not try to call MyException.__init__
867867

868868

869+
@pytest.mark.xfail(
870+
platform.python_implementation() == "PyPy",
871+
reason="PyPy 3.11 does not match CPython behavior in repr()",
872+
)
869873
def test_exceptions_mutate_original_sequence():
874+
if platform.python_implementation() == "PyPy":
875+
pytest.skip("PyPy does not support mutation of a tuple")
876+
870877
exceptions = [ValueError(1), KeyboardInterrupt()]
871878
excgrp = BaseExceptionGroup("foo", exceptions)
872879
exc_tuple = excgrp.exceptions

0 commit comments

Comments
 (0)