Skip to content

Commit c3e1773

Browse files
committed
skips cpp protobuf implementation for python 3.14 in prerelease_deps
1 parent 2ea2e18 commit c3e1773

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

packages/bigquery-magics/noxfile.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434

3535
DEFAULT_PYTHON_VERSION = "3.14"
3636

37-
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
37+
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
38+
"3.8",
39+
"3.9",
40+
"3.10",
41+
"3.11",
42+
"3.12",
43+
"3.13",
44+
"3.14",
45+
]
3846

3947
ALL_PYTHON = list(UNIT_TEST_PYTHON_VERSIONS)
4048
ALL_PYTHON.extend(["3.7"])
@@ -445,7 +453,12 @@ def docfx(session):
445453
def prerelease_deps(session, protobuf_implementation):
446454
"""Run all tests with prerelease versions of dependencies installed."""
447455

448-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
456+
if protobuf_implementation == "cpp" and session.python in (
457+
"3.11",
458+
"3.12",
459+
"3.13",
460+
"3.14",
461+
):
449462
session.skip("cpp implementation is not supported in python 3.11+")
450463

451464
# Install all dependencies
@@ -535,7 +548,9 @@ def prerelease_deps(session, protobuf_implementation):
535548

536549
# Only run system tests if found.
537550
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
538-
session.log("Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set.")
551+
session.log(
552+
"Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set."
553+
)
539554
return
540555

541556
if os.path.exists(system_test_path):

0 commit comments

Comments
 (0)