Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit894d30c

Browse files
[3.13] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136689)
It was "doctest.module attribute". Now it is "module attribute".(cherry picked from commit7689407)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent9c11745 commit894d30c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎Doc/library/doctest.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,13 @@ Which Docstrings Are Examined?
307307
The module docstring, and all function, class and method docstrings are
308308
searched. Objects imported into the module are not searched.
309309

310+
..currentmodule::None
311+
310312
..attribute::module.__test__
311313
:no-typesetting:
312314

315+
..currentmodule::doctest
316+
313317
In addition, there are cases when you want tests to be part of a module but not part
314318
of the help text, which requires that the tests not be included in the docstring.
315319
Doctest looks for a module-level variable called ``__test__`` and uses it to locate other

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp