Skip to content

Commit e2bd519

Browse files
AA-Turnertillahoffmann
authored andcommitted
style
1 parent 49b67d0 commit e2bd519

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/ext/doctest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,12 @@ def s(v: int) -> str:
363363
self.app.statuscode = 1
364364
if self.config.doctest_fail_fast:
365365
header = f'{header} (exiting after first failed test)'
366+
underline = '=' * len(header)
366367

367368
self._out(
368369
f"""
369370
{header}
370-
{'=' * len(header)}
371+
{underline}
371372
{self.total_tries:5} test{s(self.total_tries)}
372373
{self.total_failures:5} failure{s(self.total_failures)} in tests
373374
{self.setup_failures:5} failure{s(self.setup_failures)} in setup code

0 commit comments

Comments
 (0)