Merge pull request #20180 from grpc/extra_docstring

Add docstring to py2and3_test
pull/20030/head^2
Richard Belleville 5 years ago committed by GitHub
commit 900ea7fa79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      bazel/python_rules.bzl

@ -183,6 +183,14 @@ def py_grpc_library(
def py2and3_test(name,
py_test = native.py_test,
**kwargs):
"""Runs a Python test under both Python 2 and Python 3.
Args:
name: The name of the test.
py_test: The rule to use for each test.
**kwargs: Keyword arguments passed directly to the underlying py_test
rule.
"""
if "python_version" in kwargs:
fail("Cannot specify 'python_version' in py2and3_test.")

Loading…
Cancel
Save