mirror of https://github.com/python/cpython.git
Soften wording on doctest.
This commit is contained in:
parent
ce71ab2d69
commit
45aa7cc7a7
|
@ -483,10 +483,14 @@ Been deprecated for a while, but Python 3 finally drops support for
|
||||||
friends.
|
friends.
|
||||||
|
|
||||||
|
|
||||||
Stop Using :mod:`doctest`
|
Updating doctests
|
||||||
'''''''''''''''''''''''''
|
'''''''''''''''''
|
||||||
While 2to3 tries to port doctests properly, it's a rather tough thing to do. It
|
2to3_ will attempt to generate fixes for doctests that it comes across. It's
|
||||||
is probably best to simply convert your critical doctests to :mod:`unittest`.
|
not perfect, though. If you wrote a monolithic set of doctests (e.g., a single
|
||||||
|
docstring containing all of your doctests), you should at least consider
|
||||||
|
breaking the doctests up into smaller pieces to make it more manageable to fix.
|
||||||
|
Otherwise it might very well be worth your time and effort to port your tests
|
||||||
|
to :mod:`unittest`.
|
||||||
|
|
||||||
|
|
||||||
Eliminate ``-3`` Warnings
|
Eliminate ``-3`` Warnings
|
||||||
|
|
Loading…
Reference in New Issue