24
24
reason = "https://foss.heptapod.net/pypy/pypy/-/issues/3882" ,
25
25
)
26
26
27
+ xfail_pypy_3936 = pytest .mark .xfail (
28
+ env .PYPY and env .PYVERSION [:2 ] >= (3 , 10 ),
29
+ reason = "https://foss.heptapod.net/pypy/pypy/-/issues/3936" ,
30
+ )
27
31
28
32
class SimpleArcTest (CoverageTest ):
29
33
"""Tests for coverage.py's arc measurement."""
@@ -1325,6 +1329,7 @@ def gen():
1325
1329
@pytest .mark .skipif (not env .PYBEHAVIOR .match_case , reason = "Match-case is new in 3.10" )
1326
1330
class MatchCaseTest (CoverageTest ):
1327
1331
"""Tests of match-case."""
1332
+ @xfail_pypy_3936
1328
1333
def test_match_case_with_default (self ) -> None :
1329
1334
self .check_coverage ("""\
1330
1335
for command in ["huh", "go home", "go n"]:
@@ -1341,6 +1346,7 @@ def test_match_case_with_default(self) -> None:
1341
1346
)
1342
1347
assert self .stdout () == "default\n no go\n go: n\n "
1343
1348
1349
+ @xfail_pypy_3936
1344
1350
def test_match_case_with_wildcard (self ) -> None :
1345
1351
self .check_coverage ("""\
1346
1352
for command in ["huh", "go home", "go n"]:
@@ -1357,6 +1363,7 @@ def test_match_case_with_wildcard(self) -> None:
1357
1363
)
1358
1364
assert self .stdout () == "default: ['huh']\n no go\n go: n\n "
1359
1365
1366
+ @xfail_pypy_3936
1360
1367
def test_match_case_without_wildcard (self ) -> None :
1361
1368
self .check_coverage ("""\
1362
1369
match = None
@@ -1701,6 +1708,10 @@ def my_function(
1701
1708
)
1702
1709
1703
1710
@xfail_pypy38
1711
+ @pytest .mark .xfail (
1712
+ env .PYPY and env .PYVERSION [:2 ] >= (3 , 10 ),
1713
+ reason = "https://foss.heptapod.net/pypy/pypy/-/issues/3937" ,
1714
+ )
1704
1715
def test_class_decorator (self ) -> None :
1705
1716
arcz = (
1706
1717
".1 16 67 6D 7A AE E. " # main line
0 commit comments