Skip to content

Commit 07b699f

Browse files
committed
skip test if PyInfo is gone
1 parent adeaac2 commit 07b699f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/bootstrap_impls/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
1515
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1616
load("//python:py_test.bzl", "py_test")
17+
load("//python/private:reexports.bzl", "BuiltinPyInfo")
1718
load("//tests/support:py_reconfig.bzl", "py_reconfig_binary", "py_reconfig_test")
1819
load("//tests/support:sh_py_run_test.bzl", "sh_py_run_test")
1920
load("//tests/support:support.bzl", "SUPPORTS_BOOTSTRAP_SCRIPT")
@@ -112,6 +113,7 @@ py_reconfig_test(
112113
# Necessary because bazel_tools doesn't have __init__.py files.
113114
legacy_create_init = True,
114115
main = "bazel_tools_importable_test.py",
116+
target_compatible_with = [] if BuiltinPyInfo else ["@platforms//:incompatible"],
115117
deps = [
116118
"@bazel_tools//tools/python/runfiles",
117119
],

0 commit comments

Comments
 (0)