diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_clinic.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index 0499828..da957fc 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -359,6 +359,20 @@ class ClinicWholeFileTest(TestCase): """ self.expect_failure(block, err, lineno=8) + def test_multiple_star_in_args(self): + err = "'my_test_func' uses '*' more than once." + block = """ + /*[clinic input] + my_test_func + + pos_arg: object + *args: object + * + kw_arg: object + [clinic start generated code]*/ + """ + self.expect_failure(block, err, lineno=6) + def test_module_already_got_one(self): err = "Already defined module 'm'!" block = """ |