Skip to content

Commit a2a4bde

Browse files
committed
fix session skip in test
1 parent 39992e3 commit a2a4bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def unit(session, install_grpc_gcp, install_grpc, install_async_rest):
255255
@nox.session(python=PYTHON_VERSIONS)
256256
def unit_protobuf_4x(session):
257257
"""Run the unit test suite with protobuf 4.x."""
258-
if session.python in ["3.9", "3.10", "3.11"]:
259-
session.log("Skipping session: protobuf 4.x only runs on Python < 3.12")
258+
if session.python not in ["3.9", "3.10", "3.11"]:
259+
session.log(f"Skipping session for Python {session.python}")
260260
session.skip()
261261
# Pin protobuf to a 4.x version to ensure coverage for the legacy code path.
262262
session.install("protobuf>=4.25.8,<5.0.0")

0 commit comments

Comments
 (0)