Skip to content

Commit 6770ed7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 80668a0 commit 6770ed7

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

test/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ def expected_wheels(
248248
if platform == "linux":
249249
architectures = [arch_name_for_linux(machine_arch)]
250250

251-
if machine_arch == "x86_64" and not single_arch and not python_abi_tag.startswith("graalpy"):
251+
if (
252+
machine_arch == "x86_64"
253+
and not single_arch
254+
and not python_abi_tag.startswith("graalpy")
255+
):
252256
architectures.append("i686")
253257

254258
if len(manylinux_versions) > 0:

unit_test/option_prepare_test.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
158158
identifiers = {x.identifier for x in kwargs["platform_configs"]}
159159
assert identifiers == {
160160
f"{x}-manylinux_x86_64"
161-
for x in ALL_IDS - {"cp36", "cp310", "cp311", "cp312", "pp37", "pp38", "pp39", "pp310", "gp240"}
161+
for x in ALL_IDS
162+
- {"cp36", "cp310", "cp311", "cp312", "pp37", "pp38", "pp39", "pp310", "gp240"}
162163
}
163164
assert kwargs["options"].build_options("cp37-manylinux_x86_64").before_all == ""
164165

@@ -187,7 +188,9 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
187188

188189
identifiers = {x.identifier for x in kwargs["platform_configs"]}
189190
assert identifiers == {
190-
f"{x}-musllinux_x86_64" for x in ALL_IDS & {"cp36", "cp37", "cp38", "cp39"} if "pp" not in x and "gp" not in x
191+
f"{x}-musllinux_x86_64"
192+
for x in ALL_IDS & {"cp36", "cp37", "cp38", "cp39"}
193+
if "pp" not in x and "gp" not in x
191194
}
192195

193196
kwargs = build_in_container.call_args_list[5][1]
@@ -196,7 +199,9 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
196199
assert not kwargs["container"]["enforce_32_bit"]
197200
identifiers = {x.identifier for x in kwargs["platform_configs"]}
198201
assert identifiers == {
199-
f"{x}-musllinux_x86_64" for x in ALL_IDS - {"cp36", "cp37", "cp38", "cp39"} if "pp" not in x and "gp" not in x
202+
f"{x}-musllinux_x86_64"
203+
for x in ALL_IDS - {"cp36", "cp37", "cp38", "cp39"}
204+
if "pp" not in x and "gp" not in x
200205
}
201206

202207
kwargs = build_in_container.call_args_list[6][1]

0 commit comments

Comments
 (0)