|
| 1 | +From: Anthony Sottile < [email protected]> |
| 2 | +Date: Mon, 4 Jan 2021 16:43:14 -0800 |
| 3 | +Subject: fix docs for sphinx<3.2.0 |
| 4 | + |
| 5 | +--- |
| 6 | + Doc/library/doctest.rst | 6 ------ |
| 7 | + 1 file changed, 6 deletions(-) |
| 8 | + |
| 9 | +diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst |
| 10 | +index 42ad0c9..e2cf680 100644 |
| 11 | +--- a/Doc/library/doctest.rst |
| 12 | ++++ b/Doc/library/doctest.rst |
| 13 | +@@ -722,7 +722,6 @@ example. Use ``+`` to enable the named behavior, or ``-`` to disable it. |
| 14 | + For example, this test passes: |
| 15 | + |
| 16 | + .. doctest:: |
| 17 | +- :no-trim-doctest-flags: |
| 18 | + |
| 19 | + >>> print(list(range(20))) # doctest: +NORMALIZE_WHITESPACE |
| 20 | + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, |
| 21 | +@@ -734,7 +733,6 @@ is on a single line. This test also passes, and also requires a directive to do |
| 22 | + so: |
| 23 | + |
| 24 | + .. doctest:: |
| 25 | +- :no-trim-doctest-flags: |
| 26 | + |
| 27 | + >>> print(list(range(20))) # doctest: +ELLIPSIS |
| 28 | + [0, 1, ..., 18, 19] |
| 29 | +@@ -743,7 +741,6 @@ Multiple directives can be used on a single physical line, separated by |
| 30 | + commas: |
| 31 | + |
| 32 | + .. doctest:: |
| 33 | +- :no-trim-doctest-flags: |
| 34 | + |
| 35 | + >>> print(list(range(20))) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE |
| 36 | + [0, 1, ..., 18, 19] |
| 37 | +@@ -752,7 +749,6 @@ If multiple directive comments are used for a single example, then they are |
| 38 | + combined: |
| 39 | + |
| 40 | + .. doctest:: |
| 41 | +- :no-trim-doctest-flags: |
| 42 | + |
| 43 | + >>> print(list(range(20))) # doctest: +ELLIPSIS |
| 44 | + ... # doctest: +NORMALIZE_WHITESPACE |
| 45 | +@@ -763,7 +759,6 @@ containing only directives. This can be useful when an example is too long for |
| 46 | + a directive to comfortably fit on the same line: |
| 47 | + |
| 48 | + .. doctest:: |
| 49 | +- :no-trim-doctest-flags: |
| 50 | + |
| 51 | + >>> print(list(range(5)) + list(range(10, 20)) + list(range(30, 40))) |
| 52 | + ... # doctest: +ELLIPSIS |
| 53 | +@@ -821,7 +816,6 @@ Another bad idea is to print things that embed an object address, like |
| 54 | + The :const:`ELLIPSIS` directive gives a nice approach for the last example: |
| 55 | + |
| 56 | + .. doctest:: |
| 57 | +- :no-trim-doctest-flags: |
| 58 | + |
| 59 | + >>> C() # doctest: +ELLIPSIS |
| 60 | + <C object at 0x...> |
0 commit comments