We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc384b commit bcd6d4dCopy full SHA for bcd6d4d
Lib/test/test_hashlib.py
@@ -264,6 +264,10 @@ def test_clinic_signature_errors(self):
264
"is slated for removal in a future version."
265
)
266
duplicated_param = re.escape("given by name ('data') and position")
267
+ # Depending on whether we call hashlib.__py_new, hashlib.__hash_new,
268
+ # or _hashlib.new(), we have different errors as the C implementation
269
+ # does not need an additional sentinel.
270
+ duplicated_param = f"{conflicting_call}|{duplicated_param}"
271
for constructor in self.hash_constructors:
272
with self.subTest(constructor.__name__):
273
with self.assertRaisesRegex(TypeError, conflicting_call):
0 commit comments