Browse Source

Remove xfail mark on test that now works with python 3.14

pull/14789/head
Mickael Guerin 6 months ago
committed by Mickaël Guérin
parent
commit
3d7abf2c76
  1. 10
      tests/test_tutorial/test_dependencies/test_tutorial008.py

10
tests/test_tutorial/test_dependencies/test_tutorial008.py

@ -1,4 +1,5 @@
import importlib import importlib
import sys
from types import ModuleType from types import ModuleType
from typing import Annotated, Any from typing import Annotated, Any
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
@ -12,8 +13,13 @@ from fastapi.testclient import TestClient
name="module", name="module",
params=[ params=[
"tutorial008_py39", "tutorial008_py39",
# Fails with `NameError: name 'DepA' is not defined` pytest.param(
pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail), "tutorial008_an_py39",
marks=pytest.mark.xfail(
sys.version_info < (3, 14),
reason="Fails with `NameError: name 'DepA' is not defined`",
),
),
], ],
) )
def get_module(request: pytest.FixtureRequest): def get_module(request: pytest.FixtureRequest):

Loading…
Cancel
Save