@@ -216,25 +216,16 @@ def install_unittest_dependencies(session, *constraints):
216216@nox .session (python = ALL_PYTHON )
217217@nox .parametrize (
218218 "protobuf_implementation" ,
219- ["python" , "upb" , "cpp" ],
219+ ["python" , "upb" ],
220220)
221221def unit (session , protobuf_implementation ):
222222 # Install all test dependencies, then install this package in-place.
223- py_version = tuple ([int (v ) for v in session .python .split ("." )])
224- if protobuf_implementation == "cpp" and py_version >= (3 , 11 ):
225- session .skip ("cpp implementation is not supported in python 3.11+" )
226223
227224 constraints_path = str (
228225 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
229226 )
230227 install_unittest_dependencies (session , "-c" , constraints_path )
231228
232- # TODO(https://github.com/googleapis/synthtool/issues/1976):
233- # Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
234- # The 'cpp' implementation requires Protobuf<4.
235- if protobuf_implementation == "cpp" :
236- session .install ("protobuf<4" )
237-
238229 # Run py.test against the unit tests.
239230 session .run (
240231 "py.test" ,
@@ -466,15 +457,11 @@ def docfx(session):
466457@nox .session (python = DEFAULT_PYTHON_VERSION )
467458@nox .parametrize (
468459 "protobuf_implementation" ,
469- ["python" , "upb" , "cpp" ],
460+ ["python" , "upb" ],
470461)
471462def prerelease_deps (session , protobuf_implementation ):
472463 """Run all tests with prerelease versions of dependencies installed."""
473464
474- py_version = tuple ([int (v ) for v in session .python .split ("." )])
475- if protobuf_implementation == "cpp" and py_version >= (3 , 11 ):
476- session .skip ("cpp implementation is not supported in python 3.11+" )
477-
478465 # Install all dependencies
479466 session .install ("-e" , ".[all, tests, tracing]" )
480467 unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
0 commit comments