summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_keywordonlyarg.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-06-06 03:04:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-06-06 03:04:07 (GMT)
commitb204a42383642cd7a4ff756b0d5de8b31e65644d (patch)
treeaeab2bae8bb94ae7d5636839835a305afe67761f /Lib/test/test_keywordonlyarg.py
parent40b408d45538b49092c6f4194eba5517bd1fd69b (diff)
downloadcpython-b204a42383642cd7a4ff756b0d5de8b31e65644d.zip
cpython-b204a42383642cd7a4ff756b0d5de8b31e65644d.tar.gz
cpython-b204a42383642cd7a4ff756b0d5de8b31e65644d.tar.bz2
greatly improve argument parsing error messages (closes #12265)
Diffstat (limited to 'Lib/test/test_keywordonlyarg.py')
-rw-r--r--Lib/test/test_keywordonlyarg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py
index d7f7541..44be32c 100644
--- a/Lib/test/test_keywordonlyarg.py
+++ b/Lib/test/test_keywordonlyarg.py
@@ -78,7 +78,7 @@ class KeywordOnlyArgTestCase(unittest.TestCase):
pass
with self.assertRaises(TypeError) as exc:
f(1, 2, 3)
- expected = "f() takes at most 2 positional arguments (3 given)"
+ expected = "f() takes from 1 to 2 positional arguments but 3 were given"
self.assertEqual(str(exc.exception), expected)
def testSyntaxErrorForFunctionCall(self):