mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-19 15:34:20 -05:00
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: tiangolo <1326112+tiangolo@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
17 lines
424 B
Python
17 lines
424 B
Python
import sys
|
|
|
|
import pytest
|
|
|
|
needs_py310 = pytest.mark.skipif(
|
|
sys.version_info < (3, 10), reason="requires python3.10+"
|
|
)
|
|
needs_py314 = pytest.mark.skipif(
|
|
sys.version_info < (3, 14), reason="requires python3.14+"
|
|
)
|
|
|
|
|
|
def skip_module_if_py_gte_314():
|
|
"""Skip entire module on Python 3.14+ at import time."""
|
|
if sys.version_info >= (3, 14):
|
|
pytest.skip("requires python3.13-", allow_module_level=True)
|