Skip to content

Commit

Permalink
src/sage/doctest/reporting.py: Codestyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Apr 3, 2024
1 parent 2a59412 commit d605fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/doctest/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _log_failure(self, source, fail_msg, event, output=None):
command = f'::error title={fail_msg}'
command += f',file={source.printpath}'
if output:
if m := re.search("## line ([0-9]+) ##\n-{40,100}\n(.*)", output, re.MULTILINE|re.DOTALL):
if m := re.search("## line ([0-9]+) ##\n-{40,100}\n(.*)", output, re.MULTILINE | re.DOTALL):
lineno = m.group(1)
message = m.group(2)
command += f',line={lineno}'

Check warning on line 276 in src/sage/doctest/reporting.py

View check run for this annotation

Codecov / codecov/patch

src/sage/doctest/reporting.py#L270-L276

Added lines #L270 - L276 were not covered by tests
Expand Down

0 comments on commit d605fa7

Please sign in to comment.