1919
2020import pytest
2121
22-
23- SCRIPT_PATH = Path (__file__ ).resolve ().parents [1 ] / "scripts" / "verify_wheel_platform_tag.py"
22+ SCRIPT_PATH = (
23+ Path (__file__ ).resolve ().parents [1 ] / "scripts" / "verify_wheel_platform_tag.py"
24+ )
2425
2526
2627def _load_verifier ():
27- spec = importlib .util .spec_from_file_location ("verify_wheel_platform_tag" , SCRIPT_PATH )
28+ spec = importlib .util .spec_from_file_location (
29+ "verify_wheel_platform_tag" , SCRIPT_PATH
30+ )
2831 module = importlib .util .module_from_spec (spec )
2932 assert spec .loader is not None
3033 spec .loader .exec_module (module )
@@ -62,7 +65,9 @@ def test_parse_wheel_tag_extracts_version_and_arch(tmp_path: Path) -> None:
6265 assert arch == "x86_64"
6366
6467
65- def test_main_succeeds_when_tag_matches (tmp_path : Path , capsys : pytest .CaptureFixture [str ]) -> None :
68+ def test_main_succeeds_when_tag_matches (
69+ tmp_path : Path , capsys : pytest .CaptureFixture [str ]
70+ ) -> None :
6671 verifier = _load_verifier ()
6772 jre_dir = tmp_path / "jre"
6873 jre_dir .mkdir ()
@@ -76,7 +81,9 @@ def test_main_succeeds_when_tag_matches(tmp_path: Path, capsys: pytest.CaptureFi
7681 assert "OK" in capsys .readouterr ().out
7782
7883
79- def test_main_fails_when_tag_higher_than_jre (tmp_path : Path , capsys : pytest .CaptureFixture [str ]) -> None :
84+ def test_main_fails_when_tag_higher_than_jre (
85+ tmp_path : Path , capsys : pytest .CaptureFixture [str ]
86+ ) -> None :
8087 """Reproduces issue #4037: wheel tagged manylinux_2_35 but JRE only needs GLIBC_2.34."""
8188 verifier = _load_verifier ()
8289 jre_dir = tmp_path / "jre"
@@ -93,7 +100,9 @@ def test_main_fails_when_tag_higher_than_jre(tmp_path: Path, capsys: pytest.Capt
93100 assert "manylinux_2_35" in captured .err or "manylinux_2_34" in captured .err
94101
95102
96- def test_main_fails_when_tag_lower_than_jre (tmp_path : Path , capsys : pytest .CaptureFixture [str ]) -> None :
103+ def test_main_fails_when_tag_lower_than_jre (
104+ tmp_path : Path , capsys : pytest .CaptureFixture [str ]
105+ ) -> None :
97106 """A too-low tag would let the wheel install on systems where the JRE cannot run."""
98107 verifier = _load_verifier ()
99108 jre_dir = tmp_path / "jre"
0 commit comments