aboutsummaryrefslogtreecommitdiff
path: root/tests/runfiles/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runfiles/BUILD.bazel')
-rw-r--r--tests/runfiles/BUILD.bazel6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/runfiles/BUILD.bazel b/tests/runfiles/BUILD.bazel
index d62e179..6193ee9 100644
--- a/tests/runfiles/BUILD.bazel
+++ b/tests/runfiles/BUILD.bazel
@@ -1,7 +1,11 @@
-load("@rules_python//python:defs.bzl", "py_test")
+load("@rules_python//python:py_test.bzl", "py_test")
+load("@rules_python//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
py_test(
name = "runfiles_test",
srcs = ["runfiles_test.py"],
+ env = {
+ "BZLMOD_ENABLED": "1" if BZLMOD_ENABLED else "0",
+ },
deps = ["//python/runfiles"],
)