@@ -47,7 +47,7 @@ def _create_find_links(script):
47
47
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
48
48
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
49
49
""" ,
50
- "Checked 2 links for project 'base' against 2 hashes "
50
+ "Checked 2 links for project {name!r} against 2 hashes "
51
51
"(2 matches, 0 no digest): discarding no candidates" ,
52
52
),
53
53
(
@@ -56,7 +56,7 @@ def _create_find_links(script):
56
56
base==0.1.0 --hash=sha256:{sdist_hash} --hash=sha256:{wheel_hash}
57
57
base==0.1.0 --hash=sha256:{sdist_hash}
58
58
""" ,
59
- "Checked 2 links for project 'base' against 1 hashes "
59
+ "Checked 2 links for project {name!r} against 1 hashes "
60
60
"(1 matches, 0 no digest): discarding 1 non-matches" ,
61
61
),
62
62
],
@@ -84,7 +84,7 @@ def test_new_resolver_hash_intersect(script, requirements_template, message):
84
84
"--requirement" , requirements_txt ,
85
85
)
86
86
87
- assert message in result .stdout , str (result )
87
+ assert message . format ( name = u"base" ) in result .stdout , str (result )
88
88
89
89
90
90
def test_new_resolver_hash_intersect_from_constraint (script ):
@@ -119,7 +119,7 @@ def test_new_resolver_hash_intersect_from_constraint(script):
119
119
)
120
120
121
121
message = (
122
- "Checked 2 links for project 'base' against 1 hashes "
122
+ "Checked 2 links for project {name!r} against 1 hashes "
123
123
"(1 matches, 0 no digest): discarding 1 non-matches"
124
- )
124
+ ). format ( name = u"base" )
125
125
assert message in result .stdout , str (result )
0 commit comments