mirror of
https://github.com/python/cpython.git
synced 2025-08-20 00:32:12 +00:00
[3.12] Resolve reference warnings in faq/design.rst (GH-108148) (#108180)
Resolve reference warnings in faq/design.rst (GH-108148)
(cherry picked from commit 92815cc7cf
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
399825ed26
commit
a6f15af866
2 changed files with 2 additions and 3 deletions
|
@ -584,9 +584,9 @@ exhaustive test suites that exercise every line of code in a module.
|
||||||
An appropriate testing discipline can help build large complex applications in
|
An appropriate testing discipline can help build large complex applications in
|
||||||
Python as well as having interface specifications would. In fact, it can be
|
Python as well as having interface specifications would. In fact, it can be
|
||||||
better because an interface specification cannot test certain properties of a
|
better because an interface specification cannot test certain properties of a
|
||||||
program. For example, the :meth:`list.append` method is expected to add new elements
|
program. For example, the :meth:`!list.append` method is expected to add new elements
|
||||||
to the end of some internal list; an interface specification cannot test that
|
to the end of some internal list; an interface specification cannot test that
|
||||||
your :meth:`list.append` implementation will actually do this correctly, but it's
|
your :meth:`!list.append` implementation will actually do this correctly, but it's
|
||||||
trivial to check this property in a test suite.
|
trivial to check this property in a test suite.
|
||||||
|
|
||||||
Writing test suites is very helpful, and you might want to design your code to
|
Writing test suites is very helpful, and you might want to design your code to
|
||||||
|
|
|
@ -25,7 +25,6 @@ Doc/c-api/typeobj.rst
|
||||||
Doc/c-api/unicode.rst
|
Doc/c-api/unicode.rst
|
||||||
Doc/extending/extending.rst
|
Doc/extending/extending.rst
|
||||||
Doc/extending/newtypes.rst
|
Doc/extending/newtypes.rst
|
||||||
Doc/faq/design.rst
|
|
||||||
Doc/faq/gui.rst
|
Doc/faq/gui.rst
|
||||||
Doc/faq/library.rst
|
Doc/faq/library.rst
|
||||||
Doc/glossary.rst
|
Doc/glossary.rst
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue