summaryrefslogtreecommitdiff
path: root/Lib/test/test_call.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-03-13 23:03:22 +0200
committerGitHub <noreply@github.com>2019-03-13 23:03:22 +0200
commitf2f55e7f03d332fd43bc665a86d585a79c3b3ed4 (patch)
tree2c45d185d9cdc255a5aee9117e9745f28da454fc /Lib/test/test_call.py
parentd53fe5f407ff4b529628b01a1bcbf21a6aad5c3a (diff)
downloadcpython-git-f2f55e7f03d332fd43bc665a86d585a79c3b3ed4.tar.gz
bpo-36282: Improved error message for too much positional arguments. (GH-12310)
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r--Lib/test/test_call.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index 75a4a9ff81..0da0719457 100644
--- a/Lib/test/test_call.py
+++ b/Lib/test/test_call.py
@@ -157,7 +157,7 @@ class CFunctionCallsErrorMessages(unittest.TestCase):
self.assertRaisesRegex(TypeError, msg, {}.__contains__, 0, 1)
def test_varargs3(self):
- msg = r"^from_bytes\(\) takes at most 2 positional arguments \(3 given\)"
+ msg = r"^from_bytes\(\) takes exactly 2 positional arguments \(3 given\)"
self.assertRaisesRegex(TypeError, msg, int.from_bytes, b'a', 'little', False)
def test_varargs1min(self):