|
13 | 13 | # limitations under the License.
|
14 | 14 | load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
|
15 | 15 | load("@rules_shell//shell:sh_test.bzl", "sh_test")
|
| 16 | +load("//python:defs.bzl", "py_library") |
16 | 17 | load("//tests/support:py_reconfig.bzl", "py_reconfig_binary", "py_reconfig_test")
|
17 | 18 | load("//tests/support:sh_py_run_test.bzl", "sh_py_run_test")
|
18 | 19 | load("//tests/support:support.bzl", "SUPPORTS_BOOTSTRAP_SCRIPT")
|
@@ -127,11 +128,22 @@ py_reconfig_test(
|
127 | 128 | name = "main_module_test",
|
128 | 129 | srcs = ["main_module.py"],
|
129 | 130 | bootstrap_impl = "script",
|
130 |
| - imports = ["."], |
131 | 131 | main_module = "tests.bootstrap_impls.main_module",
|
132 | 132 | target_compatible_with = SUPPORTS_BOOTSTRAP_SCRIPT,
|
133 | 133 | )
|
134 | 134 |
|
| 135 | +py_library( |
| 136 | + name = "main_module_system_python_lib", |
| 137 | + srcs = ["main_module.py"], |
| 138 | +) |
| 139 | + |
| 140 | +py_reconfig_test( |
| 141 | + name = "main_module_system_python_test", |
| 142 | + bootstrap_impl = "system_python", |
| 143 | + main_module = "tests.bootstrap_impls.main_module", |
| 144 | + deps = [":main_module_system_python_lib"], |
| 145 | +) |
| 146 | + |
135 | 147 | sh_py_run_test(
|
136 | 148 | name = "inherit_pythonsafepath_env_test",
|
137 | 149 | bootstrap_impl = "script",
|
|
0 commit comments