We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daba0aa commit 4389838Copy full SHA for 4389838
1 file changed
scripts/tests/test_translation_fixer/conftest.py
@@ -10,9 +10,17 @@
10
)
11
12
13
-def pytest_collection_modifyitems(items: list[pytest.Item]) -> None:
+THIS_DIR = Path(__file__).parent.resolve()
14
+
15
16
+def pytest_collection_modifyitems(config, items: list[pytest.Item]) -> None:
17
+ if sys.platform != "win32":
18
+ return
19
20
for item in items:
- item.add_marker(skip_on_windows)
21
+ item_path = Path(item.fspath).resolve()
22
+ if item_path.is_relative_to(THIS_DIR):
23
+ item.add_marker(skip_on_windows)
24
25
26
@pytest.fixture(name="runner")
0 commit comments