mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-03 12:52:30 +02:00
52 lines
1.7 KiB
Diff
52 lines
1.7 KiB
Diff
diff --git a/test_project/.coveragerc b/test_project/.coveragerc
|
|
index 80591b3..898480e 100644
|
|
--- a/test_project/.coveragerc
|
|
+++ b/test_project/.coveragerc
|
|
@@ -24,3 +24,4 @@ rules =
|
|
"sys.version_info >= (3, 11)": py-gte-311
|
|
"sys.version_info >= (3, 12)": py-gte-312
|
|
"sys.version_info >= (3, 13)": py-gte-313
|
|
+ "sys.version_info >= (3, 14)": py-gte-314
|
|
diff --git a/test_project/example.py b/test_project/example.py
|
|
index a8f3739..423a2a7 100644
|
|
--- a/test_project/example.py
|
|
+++ b/test_project/example.py
|
|
@@ -1,5 +1,8 @@
|
|
from typing import Tuple
|
|
|
|
+def if_gte_python314() -> Tuple[int, int]: # pragma: py-gte-314
|
|
+ """Test function for pragma ``py-gte-314``."""
|
|
+ return (3, 14)
|
|
|
|
def if_gte_python313() -> Tuple[int, int]: # pragma: py-gte-313
|
|
"""Test function for pragma ``py-gte-313``."""
|
|
diff --git a/test_project/pyproject.toml b/test_project/pyproject.toml
|
|
index 1a70c59..49984ba 100644
|
|
--- a/test_project/pyproject.toml
|
|
+++ b/test_project/pyproject.toml
|
|
@@ -21,3 +21,4 @@ py-gte-310 = "sys_version_info >= (3, 10)"
|
|
py-gte-311 = "sys_version_info >= (3, 11)"
|
|
py-gte-312 = "sys_version_info >= (3, 12)"
|
|
py-gte-313 = "sys_version_info >= (3, 13)"
|
|
+py-gte-314 = "sys_version_info >= (3, 14)"
|
|
diff --git a/tests/test_integration.py b/tests/test_integration.py
|
|
index 117814e..7449141 100644
|
|
--- a/tests/test_integration.py
|
|
+++ b/tests/test_integration.py
|
|
@@ -15,6 +15,7 @@ from test_project.example import (
|
|
if_gte_python311,
|
|
if_gte_python312,
|
|
if_gte_python313,
|
|
+ if_gte_python314,
|
|
)
|
|
|
|
#: This is just our specific example.
|
|
@@ -45,6 +46,7 @@ def test_integration(cov, capsys):
|
|
if_gte_python311()
|
|
if_gte_python312()
|
|
if_gte_python313()
|
|
+ if_gte_python314()
|
|
always()
|
|
|
|
cov.json_report(outfile='-')
|