diff --git a/python/config_settings/transition.bzl b/python/config_settings/transition.bzl index 2fd3384543..e87e2c9c22 100644 --- a/python/config_settings/transition.bzl +++ b/python/config_settings/transition.bzl @@ -58,10 +58,11 @@ def _transition_py_impl(ctx): dependency_attributes = ["target"], ), target[OutputGroupInfo], - # testing.TestEnvironment is deprecated in favour of RunEnvironmentInfo but + # TODO(f0rmiga): testing.TestEnvironment is deprecated in favour of RunEnvironmentInfo but # RunEnvironmentInfo is not exposed in Bazel < 5.3. + # https://github.com/bazelbuild/rules_python/issues/901 # https://github.com/bazelbuild/bazel/commit/dbdfa07e92f99497be9c14265611ad2920161483 - (RunEnvironmentInfo if hasattr(native, "RunEnvironmentInfo") else testing.TestEnvironment)(environment = env), + testing.TestEnvironment(environment = env), ] return providers