Skip to content

Commit 03548b8

Browse files
committed
skip tests for 3.14
1 parent 6d80e72 commit 03548b8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

packages/django-google-spanner/noxfile.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@ def unit(session):
118118
"""Run the unit test suite."""
119119
if session.python in ("3.7",):
120120
session.skip("Python 3.7 is no longer supported")
121+
# TODO: Remove this check once support for Python 3.14 is added to Protobuf.
122+
if session.python == "3.14":
123+
session.skip("Protobuf upb implementation is not supported in Python 3.14 yet")
121124
# Django 3.2 is End-Of-Life and fundamentally incompatible with Python 3.13+
122-
if session.python not in ("3.13", "3.14"):
125+
if session.python != "3.13":
123126
print("Unit tests with django 3.2")
124127
default(session)
125128
print("Unit tests with django 4.2")
@@ -202,7 +205,12 @@ def system_test(session, django_version="3.2"):
202205

203206
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
204207
def system(session):
205-
if session.python not in ("3.13", "3.14"):
208+
if session.python == "3.7":
209+
session.skip("Python 3.7 is no longer supported")
210+
# TODO: Remove this check once support for Python 3.14 is added to Protobuf.
211+
if session.python == "3.14":
212+
session.skip("Protobuf upb implementation is not supported in Python 3.14 yet")
213+
if session.python != "3.13":
206214
print("System tests with django 3.2")
207215
system_test(session)
208216
print("System tests with django 4.2")

0 commit comments

Comments
 (0)