diff options
author | Xtreak <tirkarthi@users.noreply.github.com> | 2018-12-21 20:15:13 +0530 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-21 16:45:13 +0200 |
commit | 6326278e8a3a4b6ac41a74effa63331b1b9fdf5c (patch) | |
tree | 5ea5e20db776d8f017fb237a6194ef08c00e9140 /Lib/test/test_getargs2.py | |
parent | 3e8f962e63c2f929604443531a9a3aced242f3e8 (diff) | |
download | cpython-git-6326278e8a3a4b6ac41a74effa63331b1b9fdf5c.tar.gz |
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
Diffstat (limited to 'Lib/test/test_getargs2.py')
-rw-r--r-- | Lib/test/test_getargs2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_getargs2.py b/Lib/test/test_getargs2.py index 44a01a4810..d9bcb1d75b 100644 --- a/Lib/test/test_getargs2.py +++ b/Lib/test/test_getargs2.py @@ -682,11 +682,11 @@ class PositionalOnlyAndKeywords_TestCase(unittest.TestCase): self.assertEqual(self.getargs(1), (1, -1, -1)) # required positional arg missing with self.assertRaisesRegex(TypeError, - r"function takes at least 1 positional arguments \(0 given\)"): + r"function takes at least 1 positional argument \(0 given\)"): self.getargs() with self.assertRaisesRegex(TypeError, - r"function takes at least 1 positional arguments \(0 given\)"): + r"function takes at least 1 positional argument \(0 given\)"): self.getargs(keyword=3) def test_empty_keyword(self): @@ -1112,7 +1112,7 @@ class ParseTupleAndKeywords_Test(unittest.TestCase): parse((1,), {'a': 3}, 'OOO', ['', '', 'a']) parse((1,), {}, 'O|OO', ['', '', 'a']) with self.assertRaisesRegex(TypeError, - r'function takes at least 1 positional arguments \(0 given\)'): + r'function takes at least 1 positional argument \(0 given\)'): parse((), {}, 'O|OO', ['', '', 'a']) parse((1, 2), {'a': 3}, 'OO$O', ['', '', 'a']) with self.assertRaisesRegex(TypeError, @@ -1120,7 +1120,7 @@ class ParseTupleAndKeywords_Test(unittest.TestCase): parse((1,), {'a': 3}, 'OO$O', ['', '', 'a']) parse((1,), {}, 'O|O$O', ['', '', 'a']) with self.assertRaisesRegex(TypeError, - r'function takes at least 1 positional arguments \(0 given\)'): + r'function takes at least 1 positional argument \(0 given\)'): parse((), {}, 'O|O$O', ['', '', 'a']) with self.assertRaisesRegex(SystemError, r'Empty parameter name after \$'): parse((1,), {}, 'O|$OO', ['', '', 'a']) |