8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85ed1d2 commit 8d228cfCopy full SHA for 8d228cf
Lib/test/test_clinic.py
@@ -1035,6 +1035,25 @@ def test_function_not_at_column_0(self):
1035
Nested docstring here, goeth.
1036
""")
1037
1038
+ def test_indent_stack_no_tabs(self):
1039
+ out = self.parse_function_should_fail("""
1040
+ module foo
1041
+ foo.bar
1042
+ *vararg1: object
1043
+ \t*vararg2: object
1044
+ """)
1045
+ msg = "Tab characters are illegal in the Clinic DSL."
1046
+ self.assertIn(msg, out)
1047
+
1048
+ def test_indent_stack_illegal_outdent(self):
1049
1050
1051
1052
+ a: object
1053
+ b: object
1054
1055
+ self.assertIn("Illegal outdent", out)
1056
1057
def test_directive(self):
1058
c = FakeClinic()
1059
parser = DSLParser(c)
0 commit comments