diff options
author | Xtreak <tirkarthi@users.noreply.github.com> | 2018-12-21 14:45:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-21 14:45:13 (GMT) |
commit | 6326278e8a3a4b6ac41a74effa63331b1b9fdf5c (patch) | |
tree | 5ea5e20db776d8f017fb237a6194ef08c00e9140 /Lib/test/test_call.py | |
parent | 3e8f962e63c2f929604443531a9a3aced242f3e8 (diff) | |
download | cpython-6326278e8a3a4b6ac41a74effa63331b1b9fdf5c.zip cpython-6326278e8a3a4b6ac41a74effa63331b1b9fdf5c.tar.gz cpython-6326278e8a3a4b6ac41a74effa63331b1b9fdf5c.tar.bz2 |
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r-- | Lib/test/test_call.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index 45b34e4..75a4a9f 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -160,19 +160,22 @@ class CFunctionCallsErrorMessages(unittest.TestCase): msg = r"^from_bytes\(\) takes at most 2 positional arguments \(3 given\)" self.assertRaisesRegex(TypeError, msg, int.from_bytes, b'a', 'little', False) - def test_varargs4(self): + def test_varargs1min(self): msg = r"get expected at least 1 argument, got 0" self.assertRaisesRegex(TypeError, msg, {}.get) - def test_varargs5(self): + msg = r"expected 1 argument, got 0" + self.assertRaisesRegex(TypeError, msg, {}.__delattr__) + + def test_varargs2min(self): msg = r"getattr expected at least 2 arguments, got 0" self.assertRaisesRegex(TypeError, msg, getattr) - def test_varargs6(self): + def test_varargs1max(self): msg = r"input expected at most 1 argument, got 2" self.assertRaisesRegex(TypeError, msg, input, 1, 2) - def test_varargs7(self): + def test_varargs2max(self): msg = r"get expected at most 2 arguments, got 3" self.assertRaisesRegex(TypeError, msg, {}.get, 1, 2, 3) |