exec ${PAGER:-/usr/bin/less} "$0" || exit 1 Executing tests from //tools/python:pywrapper_test ----------------------------------------------------------------------------- /private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/tools/python/pywrapper_test.runfiles/io_bazel/tools/python/pywrapper_test.py:156: DeprecationWarning: Please use assertRegex instead. self.assertRegexpMatches( FF.. ====================================================================== FAIL: test_error_getting_version (__main__.PywrapperTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/tools/python/pywrapper_test.runfiles/io_bazel/tools/python/pywrapper_test.py", line 175, in test_error_getting_version self.assert_wrapper_failure(returncode, out, err, File "/private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/tools/python/pywrapper_test.runfiles/io_bazel/tools/python/pywrapper_test.py", line 156, in assert_wrapper_failure self.assertRegexpMatches( AssertionError: Regex didn't match: 'Could not get interpreter version' not found in "Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain).\nNeither 'python3' nor 'python' were found on the target platform's PATH, which is:\n\n/private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/_tmp/791cf4351c44377dc3649300ca700744/tests_root/tmp_bw1zyh_/dir\n\nPlease ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair).\n" : stderr did not contain expected string ====================================================================== FAIL: test_finds_python (__main__.PywrapperTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/tools/python/pywrapper_test.runfiles/io_bazel/tools/python/pywrapper_test.py", line 162, in test_finds_python self.assert_wrapper_success(returncode, out, err) File "/private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/bazel-out/darwin-fastbuild/bin/tools/python/pywrapper_test.runfiles/io_bazel/tools/python/pywrapper_test.py", line 149, in assert_wrapper_success self.assertEqual(returncode, 0, msg="Expected to exit without error") AssertionError: 1 != 0 : Expected to exit without error ---------------------------------------------------------------------- Ran 4 tests in 7.364s FAILED (failures=2) ---------------- test_error_getting_version Exit code: 1 stdout: stderr: Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain). Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/_tmp/791cf4351c44377dc3649300ca700744/tests_root/tmp_bw1zyh_/dir Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair). ---------------- ---------------- test_finds_python Exit code: 1 stdout: stderr: Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain). Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/_tmp/791cf4351c44377dc3649300ca700744/tests_root/tmpcmq5i2sk/dir Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair). ---------------- ---------------- test_interpreter_not_executable Exit code: 1 stdout: stderr: Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain). Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/_tmp/791cf4351c44377dc3649300ca700744/tests_root/tmp3j4nj7zt/dir Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair). ---------------- ---------------- test_no_interpreter_found Exit code: 1 stdout: stderr: Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain). Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /private/var/tmp/_bazel_buildkite/74b83b0a08a820cec0108101bb8c37f8/sandbox/darwin-sandbox/8212/execroot/io_bazel/_tmp/791cf4351c44377dc3649300ca700744/tests_root/tmpo47nkvxr/dir Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair). ----------------