This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
From: Anthony Sottile <asottile@umich.edu> | ||
Date: Mon, 4 Jan 2021 16:43:14 -0800 | ||
Subject: fix docs for sphinx<3.2.0 | ||
|
||
--- | ||
Doc/library/doctest.rst | 6 ------ | ||
1 file changed, 6 deletions(-) | ||
|
||
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst | ||
index 42ad0c9..e2cf680 100644 | ||
--- a/Doc/library/doctest.rst | ||
+++ b/Doc/library/doctest.rst | ||
@@ -722,7 +722,6 @@ example. Use ``+`` to enable the named behavior, or ``-`` to disable it. | ||
For example, this test passes: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE | ||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, | ||
@@ -734,7 +733,6 @@ is on a single line. This test also passes, and also requires a directive to do | ||
so: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> print(list(range(20))) # doctest: +ELLIPSIS | ||
[0, 1, ..., 18, 19] | ||
@@ -743,7 +741,6 @@ Multiple directives can be used on a single physical line, separated by | ||
commas: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> print(list(range(20))) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE | ||
[0, 1, ..., 18, 19] | ||
@@ -752,7 +749,6 @@ If multiple directive comments are used for a single example, then they are | ||
combined: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> print(list(range(20))) # doctest: +ELLIPSIS | ||
... # doctest: +NORMALIZE_WHITESPACE | ||
@@ -763,7 +759,6 @@ containing only directives. This can be useful when an example is too long for | ||
a directive to comfortably fit on the same line: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> print(list(range(5)) + list(range(10, 20)) + list(range(30, 40))) | ||
... # doctest: +ELLIPSIS | ||
@@ -821,7 +816,6 @@ Another bad idea is to print things that embed an object address, like | ||
The :const:`ELLIPSIS` directive gives a nice approach for the last example: | ||
|
||
.. doctest:: | ||
- :no-trim-doctest-flags: | ||
|
||
>>> C() # doctest: +ELLIPSIS | ||
<C object at 0x...> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters