@@ -248,27 +248,16 @@ def install_unittest_dependencies(session, *constraints):
248248@nox.session(python =ALL_PYTHON)
249249@nox.parametrize(
250250 " protobuf_implementation" ,
251- [ " python" , " upb" , " cpp " ],
251+ [ " python" , " upb" ],
252252)
253253def unit(session, protobuf_implementation):
254254 # Install all test dependencies, then install this package in-place.
255255
256- # TODO(https: //github.com /googleapis /gapic-generator-python /issues /2388):
257- # Remove this check once support for Protobuf 3.x is dropped.
258- if protobuf_implementation == " cpp" and session.python in ( " 3.11" , " 3.12" , " 3.13" , " 3.14" ):
259- session.skip( " cpp implementation is not supported in python 3.11+" )
260-
261256 constraints_path = str(
262257 CURRENT_DIRECTORY / " testing" / f " constraints-{session.python}.txt"
263258 )
264259 install_unittest_dependencies(session, " -c" , constraints_path)
265260
266- # TODO(https: //github.com /googleapis /gapic-generator-python /issues /2388):
267- # Remove the ' cpp' implementation once support for Protobuf 3.x is dropped.
268- # The ' cpp' implementation requires Protobuf <4.
269- if protobuf_implementation == " cpp" :
270- session.install( " protobuf<4" )
271-
272261 # Run py.test against the unit tests.
273262 session.run(
274263 " py.test" ,
@@ -463,7 +452,7 @@ def docfx(session):
463452@nox.session(python=PREVIEW_PYTHON_VERSION)
464453@nox.parametrize(
465454 "protobuf_implementation",
466- ["python", "upb", "cpp" ],
455+ ["python", "upb"],
467456)
468457def prerelease_deps(session, protobuf_implementation):
469458 """
@@ -473,11 +462,6 @@ def prerelease_deps(session, protobuf_implementation):
473462 `pip install --pre <package >`.
474463 """
475464
476- # TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
477- # Remove this check once support for Protobuf 3.x is dropped.
478- if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13", "3.14"):
479- session.skip("cpp implementation is not supported in python 3.11+")
480-
481465 # Install all dependencies
482466 session.install("-e", ".")
483467
0 commit comments