@@ -307,51 +307,29 @@ def default(
307307
308308@nox .session (python = ALL_PYTHON )
309309@nox .parametrize (
310- ["install_grpc" , "install_async_rest" , "python_versions" , "legacy_proto" ],
310+ ["install_grpc" , "install_async_rest" , "python_versions" ],
311311 [
312- (True , False , None , None ), # Run unit tests with grpcio installed
313- (False , False , None , None ), # Run unit tests without grpcio installed
312+ (True , False , None ), # Run unit tests with grpcio installed
313+ (False , False , None ), # Run unit tests without grpcio installed
314314 (
315315 True ,
316316 True ,
317317 None ,
318- None ,
319318 ), # Run unit tests with grpcio and async rest installed
320- # TODO: Remove once we stop support for protobuf 4.x.
321- (
322- True ,
323- False ,
324- ["3.10" , "3.11" ],
325- 4 ,
326- ), # Run proto4 tests with grpcio/grpcio-gcp installed
327- ],
328319)
329320def unit (
330- session , install_grpc , install_async_rest , python_versions = None , legacy_proto = None
321+ session , install_grpc , install_async_rest , python_versions = None
331322):
332323 """Run the unit test suite with the given configuration parameters.
333324
334325 If `python_versions` is provided, the test suite only runs when the Python version (xx.yy) is
335326 one of the values in `python_versions`.
336-
337- If `legacy_proto` is provided, this test suite will explicitly install the proto library at
338- that major version. Only a few values are supported at any one time; the intent is to test
339- deprecated but noyet abandoned versions.
340327 """
341328
342329 if python_versions and session .python not in python_versions :
343330 session .log (f"Skipping session for Python { session .python } " )
344331 session .skip ()
345332
346- match legacy_proto :
347- case 4 :
348- # Pin protobuf to a 4.x version to ensure coverage for the legacy code path.
349- session .install ("protobuf>=4.25.8,<5.0.0" )
350- case None | False :
351- pass
352- case _:
353- assert False , f"Unknown legacy_proto: { legacy_proto } "
354-
355333 default (
356334 session = session ,
357335 install_grpc = install_grpc ,
0 commit comments