File tree Expand file tree Collapse file tree
tests/venv_site_packages_libs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- load ("@rules_python_internal//:rules_python_config.bzl" , rp_config = "config" )
21load ("@rules_shell//shell:sh_test.bzl" , "sh_test" )
32load ("//python:py_library.bzl" , "py_library" )
43load ("//tests/support:py_reconfig.bzl" , "py_reconfig_test" )
@@ -79,9 +78,6 @@ py_reconfig_test(
7978 "@platforms//os:windows" : "system_python" ,
8079 "//conditions:default" : "script" ,
8180 }),
82- env = {
83- "BAZEL_8_OR_LATER" : "1" if rp_config .bazel_8_or_later else "0" ,
84- },
8581 main = "whl_scripts_runnable_test.py" ,
8682 venvs_site_packages = "yes" ,
8783 deps = [
Original file line number Diff line number Diff line change @@ -63,12 +63,6 @@ def test_entry_point_is_runnable(self):
6363 script_executable = output [- 1 ].strip ()
6464 self .assertEqual (script_executable , sys .executable )
6565
66- # This should really check for 8.5 instead of 8+, but we test with 8.6
67- # so it's close enough for our purposes.
68- @unittest .skipUnless (
69- BAZEL_8_OR_LATER ,
70- "bazel 8.5 and lower uses wheel.py, which rewrites #!pythonw to #!python" ,
71- )
7266 def test_pythonw_script (self ):
7367 script_path = self ._get_script_path ("whl_with_data1_pythonw" )
7468 self .assertTrue (script_path .exists (), f"Script not found at { script_path } " )
You can’t perform that action at this time.
0 commit comments