Skip to content

Commit 624cb63

Browse files
committed
fix test which uses assert itertools.product() with old error message
1 parent e906e4c commit 624cb63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_call.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_varargs13_kw(self):
203203
self.assertRaisesRegex(TypeError, msg, classmethod, func=id)
204204

205205
def test_varargs14_kw(self):
206-
msg = r"^product\(\) takes at most 1 keyword argument \(2 given\)$"
206+
msg = r"^product\(\) got an unexpected keyword argument 'foo'$"
207207
self.assertRaisesRegex(TypeError, msg,
208208
itertools.product, 0, repeat=1, foo=2)
209209

0 commit comments

Comments
 (0)