Skip to content

Commit cbc806d

Browse files
committed
enable pythonw test
1 parent 04f320b commit cbc806d

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

tests/venv_site_packages_libs/BUILD.bazel

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("@rules_python_internal//:rules_python_config.bzl", rp_config = "config")
21
load("@rules_shell//shell:sh_test.bzl", "sh_test")
32
load("//python:py_library.bzl", "py_library")
43
load("//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 = [

tests/venv_site_packages_libs/whl_scripts_runnable_test.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)