Skip to content

Commit 53cb5f8

Browse files
authored
Remove xfail marker on a PEP 649 related test (#12609)
Thanks to python/cpython#138164 (included in 3.14.1), Python is now able to preserve references when building the forward ref object, and so calling `_eval_type()` on the individual annotations works as expected.
1 parent bc15b36 commit 53cb5f8

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tests/test_deferred_annotations.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class Model(BaseModel):
3636
assert inst.b == 'test'
3737

3838

39-
@pytest.mark.xfail(
40-
reason=(
41-
'When rebuilding model fields, we individually re-evaluate all fields (using `_eval_type()`) '
42-
"and as such we don't benefit from PEP 649's capabilities."
43-
),
44-
)
4539
def test_deferred_annotations_nested_model() -> None:
4640
def outer():
4741
def inner():

0 commit comments

Comments
 (0)