GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-106368: Argument clinic: improve coverage for `self.valid_line()` calls by AlexWaygood · Pull Request #107641 · python/cpython Conversation
|
| if not self.valid_line(line): | |
| return | |
There are two other if not self.valid_line(line) branches in clinic.py which are reachable, but are uncovered:
cpython/Tools/clinic/clinic.py
Lines 5323 to 5330 in 321f0f7
| def state_function_docstring(self, line: str) -> None: | |
| assert self.function is not None | |
| if self.group: | |
| fail(f"Function {self.function.name!r} has a ']' without a matching '['.") | |
| if not self.valid_line(line): | |
| return |
cpython/Tools/clinic/clinic.py
Lines 5304 to 5306 in 321f0f7
| def state_parameter_docstring(self, line: str) -> None: | |
| if not self.valid_line(line): | |
| return |
Add a test that covers both of them.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.