summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-08-04 19:41:04 (GMT)
committerGitHub <noreply@github.com>2023-08-04 19:41:04 (GMT)
commit2c25bd82f46df72c89ca5bca10eaa06137ab8290 (patch)
treeea4c93a5d96ab652772f7eababf5684377d10ffc /Tools/clinic
parent904b5319b3cc72063f4bfcd7beb3a1ef0fc641be (diff)
downloadcpython-2c25bd82f46df72c89ca5bca10eaa06137ab8290.zip
cpython-2c25bd82f46df72c89ca5bca10eaa06137ab8290.tar.gz
cpython-2c25bd82f46df72c89ca5bca10eaa06137ab8290.tar.bz2
gh-106368: Argument clinic: improve coverage for `self.valid_line()` calls (#107641)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 917f1bf..7fbae1e 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -4685,9 +4685,7 @@ class DSLParser:
# this line is permitted to start with whitespace.
# we'll call this number of spaces F (for "function").
- if not self.valid_line(line):
- return
-
+ assert self.valid_line(line)
self.indent.infer(line)
# are we cloning?