mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-26 03:36:14 -05:00
Compare commits
4 Commits
0.133.0
...
add-dates-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab4146a9fc | ||
|
|
fb7222bb6e | ||
|
|
2b476737b8 | ||
|
|
1fa1065f9e |
File diff suppressed because it is too large
Load Diff
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user