Skip testing building py_library for Python 2 in python_stub_test.
The skip is based on product name because Bazel isn't yet using the Starlark
implementation.
Work towards
@@ -115,8 +115,11 @@ py_library(
EOF
touch test/lib2.py test/lib3.py
+ # Python 2 support dropped in Google builds
+ if [[ "$PRODUCT_NAME" == "bazel" ]]; then
bazel build --python_version=PY2 //test:* \
&> $TEST_log || fail "bazel build failed"
+ fi
bazel build --python_version=PY3 //test:* \
&> $TEST_log || fail "bazel build failed"
}
