Skip to content

Commit 753ad4d

Browse files
committed
F Python 2
1 parent dfaa111 commit 753ad4d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/functional/test_new_resolver_hashes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _create_find_links(script):
4747
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
4848
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
4949
""",
50-
"Checked 2 links for project 'base' against 2 hashes "
50+
"Checked 2 links for project {name!r} against 2 hashes "
5151
"(2 matches, 0 no digest): discarding no candidates",
5252
),
5353
(
@@ -56,7 +56,7 @@ def _create_find_links(script):
5656
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
5757
base==0.1.0 --hash=sha256:{sdist_hash}
5858
""",
59-
"Checked 2 links for project 'base' against 1 hashes "
59+
"Checked 2 links for project {name!r} against 1 hashes "
6060
"(1 matches, 0 no digest): discarding 1 non-matches",
6161
),
6262
],
@@ -84,7 +84,7 @@ def test_new_resolver_hash_intersect(script, requirements_template, message):
8484
"--requirement", requirements_txt,
8585
)
8686

87-
assert message in result.stdout, str(result)
87+
assert message.format(name=u"base") in result.stdout, str(result)
8888

8989

9090
def test_new_resolver_hash_intersect_from_constraint(script):
@@ -119,7 +119,7 @@ def test_new_resolver_hash_intersect_from_constraint(script):
119119
)
120120

121121
message = (
122-
"Checked 2 links for project 'base' against 1 hashes "
122+
"Checked 2 links for project {name!r} against 1 hashes "
123123
"(1 matches, 0 no digest): discarding 1 non-matches"
124-
)
124+
).format(name=u"base")
125125
assert message in result.stdout, str(result)

0 commit comments

Comments
 (0)