summaryrefslogtreecommitdiffstats
path: root/Tools/clinic/clinic_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/clinic/clinic_test.py')
-rw-r--r--Tools/clinic/clinic_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tools/clinic/clinic_test.py b/Tools/clinic/clinic_test.py
index 81a0050..7baf380 100644
--- a/Tools/clinic/clinic_test.py
+++ b/Tools/clinic/clinic_test.py
@@ -560,6 +560,20 @@ Docstring
self.assertEqual("Docstring\n\nfoo.bar()", function.docstring)
self.assertEqual(0, len(function.parameters))
+ def test_illegal_module_line(self):
+ self.parse_function_should_fail("""
+module foo
+foo.bar => int
+ /
+""")
+
+ def test_illegal_c_basename(self):
+ self.parse_function_should_fail("""
+module foo
+foo.bar as 935
+ /
+""")
+
def test_single_star(self):
self.parse_function_should_fail("""
module foo