From 1fa1065f9e998f6e7baac52391b61132696c1de7 Mon Sep 17 00:00:00 2001 From: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:37:59 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=85=20Fix=20all=20tests=20are=20skipp?= =?UTF-8?q?ed=20on=20Windows=20(#14994)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix all tests are skipped on Windows --- scripts/tests/test_translation_fixer/conftest.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/tests/test_translation_fixer/conftest.py b/scripts/tests/test_translation_fixer/conftest.py index 006f519f4..06366d5a4 100644 --- a/scripts/tests/test_translation_fixer/conftest.py +++ b/scripts/tests/test_translation_fixer/conftest.py @@ -10,9 +10,17 @@ skip_on_windows = pytest.mark.skipif( ) -def pytest_collection_modifyitems(items: list[pytest.Item]) -> None: +THIS_DIR = Path(__file__).parent.resolve() + + +def pytest_collection_modifyitems(config, items: list[pytest.Item]) -> None: + if sys.platform != "win32": + return + for item in items: - item.add_marker(skip_on_windows) + item_path = Path(item.fspath).resolve() + if item_path.is_relative_to(THIS_DIR): + item.add_marker(skip_on_windows) @pytest.fixture(name="runner") From 2b476737b8ed6aa8a42acd5a8e912656d08f15de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Feb 2026 10:38:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Update=20release=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [skip ci] --- docs/en/docs/release-notes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/docs/release-notes.md b/docs/en/docs/release-notes.md index 9a6cb4e21..735d19172 100644 --- a/docs/en/docs/release-notes.md +++ b/docs/en/docs/release-notes.md @@ -7,6 +7,10 @@ hide: ## Latest Changes +### Internal + +* ✅ Fix all tests are skipped on Windows. PR [#14994](https://github.com/fastapi/fastapi/pull/14994) by [@YuriiMotov](https://github.com/YuriiMotov). + ## 0.133.0 ### Upgrades