Skip to content

Commit 608355a

Browse files
committed
fix lint
1 parent 60eb704 commit 608355a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: tests/pypi/parse_requirements/parse_requirements_tests.bzl

+11-11
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ foo==0.0.3 --hash=sha256:deadbaaf
6969
--abi=cp39
7070
7171
foo==0.0.3 --hash=sha256:deadbaaf
72-
""",
73-
"requirements_windows": """\
74-
foo[extra]==0.0.2 --hash=sha256:deadbeef
75-
bar==0.0.1 --hash=sha256:deadb00f
7672
""",
7773
"requirements_sdist_different_hashes": """\
7874
foo==0.0.1 --hash=sha256:deadbeef --hash=sha256:cafebabe
7975
""",
8076
"requirements_sdist_different_hashes_linux": """\
8177
foo==0.0.1 --hash=sha256:deadbaaf --hash=sha256:cafebabe
78+
""",
79+
"requirements_windows": """\
80+
foo[extra]==0.0.2 --hash=sha256:deadbeef
81+
bar==0.0.1 --hash=sha256:deadb00f
8282
""",
8383
}
8484

@@ -452,22 +452,22 @@ _tests.append(_test_different_package_version)
452452
def _test_sdist_different_hashes(env):
453453
"""Test that sdists with same hash but wheels with different hashes across platforms are handled correctly."""
454454

455-
def _mock_get_index_urls(_, distributions):
455+
def _mock_get_index_urls(_, _):
456456
return {
457457
"foo": struct(
458458
whls = {
459-
"deadbeef": struct(
460-
filename = "foo-0.0.1-py3-none-win_amd64.whl",
461-
url = "https://pypi.org/foo-0.0.1-win.whl",
462-
sha256 = "deadbeef",
463-
yanked = False,
464-
),
465459
"deadbaaf": struct(
466460
filename = "foo-0.0.1-py3-none-manylinux_2_17_x86_64.whl",
467461
url = "https://pypi.org/foo-0.0.1-linux.whl",
468462
sha256 = "deadbaaf",
469463
yanked = False,
470464
),
465+
"deadbeef": struct(
466+
filename = "foo-0.0.1-py3-none-win_amd64.whl",
467+
url = "https://pypi.org/foo-0.0.1-win.whl",
468+
sha256 = "deadbeef",
469+
yanked = False,
470+
),
471471
},
472472
sdists = {
473473
"cafebabe": struct(

0 commit comments

Comments
 (0)