Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d228cf

Browse files
gh-106368: Increase Argument Clinic test coverage for IndentStack (#106933)
1 parent85ed1d2 commit8d228cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎Lib/test/test_clinic.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,25 @@ def test_function_not_at_column_0(self):
10351035
Nested docstring here, goeth.
10361036
""")
10371037

1038+
deftest_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+
deftest_indent_stack_illegal_outdent(self):
1049+
out=self.parse_function_should_fail("""
1050+
module foo
1051+
foo.bar
1052+
a: object
1053+
b: object
1054+
""")
1055+
self.assertIn("Illegal outdent",out)
1056+
10381057
deftest_directive(self):
10391058
c=FakeClinic()
10401059
parser=DSLParser(c)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp