Skip to content

Commit 20fd356

Browse files
committed
fix tests on bazel <8
1 parent d640490 commit 20fd356

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/toolchains/transitions/transitions_tests.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ def _test_transitions(*, name, tests, skip = False):
116116
def _test_transition_impl(env, targets):
117117
# Check that the forwarded version from the PyRuntimeInfo is correct
118118
for target in dir(targets):
119+
if not target.startswith("python"):
120+
# Skip other attributes that might be not the ones we set (e.g. to_json, to_proto).
121+
continue
122+
119123
test_info = env.expect.that_target(getattr(targets, target)).provider(
120124
TestInfo,
121125
factory = lambda v, meta: v,

0 commit comments

Comments
 (0)