summaryrefslogtreecommitdiff
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-06-06 18:45:22 +0300
committerGitHub <noreply@github.com>2017-06-06 18:45:22 +0300
commit5eb788bf7f54a8e04429e18fc332db858edd64b6 (patch)
treeff7ea360d2765c1ec18ad02fcfc1de473a1d7b65 /Lib/test/test_itertools.py
parent5cefb6cfdd089d237ba6724bb5311ee4f04be59f (diff)
downloadcpython-git-5eb788bf7f54a8e04429e18fc332db858edd64b6.tar.gz
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.
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py2
1 files changed, 1 insertions, 1 deletions
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):