From 5eb788bf7f54a8e04429e18fc332db858edd64b6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 6 Jun 2017 18:45:22 +0300 Subject: bpo-30534: Fixed error messages when pass keyword arguments (#1901) to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments. --- Lib/test/test_itertools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_itertools.py') diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index c431f0dc6e..f525255011 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -1996,7 +1996,7 @@ class SubclassWithKwargsTest(unittest.TestCase): Subclass(newarg=1) except TypeError as err: # we expect type errors because of wrong argument count - self.assertNotIn("does not take keyword arguments", err.args[0]) + self.assertNotIn("keyword arguments", err.args[0]) @support.cpython_only class SizeofTest(unittest.TestCase): -- cgit v1.2.1