2121)
2222
2323
24- @pytest .mark .xfail (
25- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
26- )
24+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
2725@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
2826def test_gc_schema_serializer () -> None :
2927 """https://github.com/pydantic/pydantic/issues/5136"""
@@ -50,9 +48,7 @@ class MyModel(BaseModel):
5048 assert_gc (lambda : len (cache ) == 0 )
5149
5250
53- @pytest .mark .xfail (
54- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
55- )
51+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
5652@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
5753def test_gc_schema_validator () -> None :
5854 """https://github.com/pydantic/pydantic/issues/5136"""
@@ -80,9 +76,7 @@ class MyModel(BaseModel):
8076 assert_gc (lambda : len (cache ) == 0 )
8177
8278
83- @pytest .mark .xfail (
84- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
85- )
79+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
8680@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
8781def test_gc_validator_iterator () -> None :
8882 """https://github.com/pydantic/pydantic/issues/9243"""
@@ -117,9 +111,7 @@ def __next__(self):
117111 assert_gc (lambda : len (cache ) == 0 )
118112
119113
120- @pytest .mark .xfail (
121- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
122- )
114+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
123115@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
124116def test_gc_enum_serializer_class () -> None :
125117 """https://github.com/pydantic/pydantic/issues/13621"""
@@ -143,9 +135,7 @@ class MyEnum(EnumBase, str, Enum):
143135 assert_gc (lambda : len (cache ) == 0 )
144136
145137
146- @pytest .mark .xfail (
147- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
148- )
138+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
149139@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
150140def test_gc_enum_validator_lookup () -> None :
151141 """https://github.com/pydantic/pydantic/issues/13621"""
@@ -169,9 +159,7 @@ class MyEnum(EnumBase, str, Enum):
169159 assert_gc (lambda : len (cache ) == 0 )
170160
171161
172- @pytest .mark .xfail (
173- condition = platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898'
174- )
162+ @pytest .mark .skipif (platform .python_implementation () == 'PyPy' , reason = 'https://github.com/pypy/pypy/issues/3898' )
175163@pytest .mark .skipif (platform .python_implementation () == 'GraalVM' , reason = 'Cannot reliably trigger GC on GraalPy' )
176164def test_gc_field_exclude_if () -> None :
177165 """https://github.com/pydantic/pydantic/issues/13621"""
0 commit comments