@@ -123,10 +123,10 @@ And so on, eventually ending with:
123123 OverflowError: n too large
124124 ok
125125 2 items passed all tests:
126- 1tests in __main__
127- 8 tests in __main__.factorial
128- 9 tests in 2 items.
129- 9 passed and 0 failed .
126+ 1test in __main__
127+ 6 tests in __main__.factorial
128+ 7 tests in 2 items.
129+ 7 passed.
130130 Test passed.
131131 $
132132
@@ -1021,7 +1021,8 @@ from text files and modules with doctests:
10211021 and runs the interactive examples in each file. If an example in any file
10221022 fails, then the synthesized unit test fails, and a:exc: `failureException `
10231023 exception is raised showing the name of the file containing the test and a
1024- (sometimes approximate) line number.
1024+ (sometimes approximate) line number. If all the examples in a file are
1025+ skipped, then the synthesized unit test is also marked as skipped.
10251026
10261027 Pass one or more paths (as strings) to text files to be examined.
10271028
@@ -1087,7 +1088,8 @@ from text files and modules with doctests:
10871088 and runs each doctest in the module. If any of the doctests fail, then the
10881089 synthesized unit test fails, and a:exc: `failureException ` exception is raised
10891090 showing the name of the file containing the test and a (sometimes approximate)
1090- line number.
1091+ line number. If all the examples in a docstring are skipped, then the
1092+ synthesized unit test is also marked as skipped.
10911093
10921094 Optional argument *module * provides the module to be tested. It can be a module
10931095 object or a (possibly dotted) module name. If not specified, the module calling
@@ -1933,7 +1935,7 @@ such a test runner::
19331935 optionflags=flags)
19341936 else:
19351937 fail, total = doctest.testmod(optionflags=flags)
1936- print("{ } failures out of {} tests".format(fail, total) )
1938+ print(f"{fail } failures out of {total } tests")
19371939
19381940
19391941..rubric ::Footnotes