File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1212
1313from lazy_object_proxy .utils import await_
1414
15+ pypyxfail = pytest .mark .xfail ('hasattr(sys, "pypy_version_info")' )
16+
1517
1618class AsyncYieldFrom :
1719 def __init__ (self , obj ):
@@ -828,6 +830,7 @@ async def func():
828830 run_async (lop .Proxy (func ))
829831
830832
833+ @pypyxfail
831834def test_with_6 (lop ):
832835 class CM :
833836 def __aenter__ (self ):
@@ -846,6 +849,7 @@ async def foo():
846849 run_async (lop .Proxy (foo ))
847850
848851
852+ @pypyxfail
849853def test_with_7 (lop ):
850854 class CM :
851855 async def __aenter__ (self ):
@@ -870,6 +874,7 @@ async def foo():
870874 pytest .fail ('invalid asynchronous context manager did not fail' )
871875
872876
877+ @pypyxfail
873878def test_with_8 (lop ):
874879 CNT = 0
875880
@@ -1115,6 +1120,7 @@ async def test3():
11151120 ['what?' , 'end' ]
11161121
11171122
1123+ @pypyxfail
11181124def test_for_2 (lop ):
11191125 tup = (1 , 2 , 3 )
11201126 refs_before = sys .getrefcount (tup )
@@ -1129,6 +1135,7 @@ async def foo():
11291135 assert sys .getrefcount (tup ) == refs_before
11301136
11311137
1138+ @pypyxfail
11321139def test_for_3 (lop ):
11331140 class I :
11341141 def __aiter__ (self ):
@@ -1147,6 +1154,7 @@ async def foo():
11471154 assert sys .getrefcount (aiter ) == refs_before
11481155
11491156
1157+ @pypyxfail
11501158def test_for_4 (lop ):
11511159 class I :
11521160 def __aiter__ (self ):
@@ -1168,6 +1176,7 @@ async def foo():
11681176 assert sys .getrefcount (aiter ) == refs_before
11691177
11701178
1179+ @pypyxfail
11711180def test_for_6 (lop ):
11721181 I = 0
11731182
You can’t perform that action at this time.
0 commit comments