mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Closes #25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
This commit is contained in:
parent
06871ef2b3
commit
5d94134040
69 changed files with 253 additions and 256 deletions
|
@ -549,7 +549,7 @@ Calls to the date constructor are recorded in the ``mock_date`` attributes
|
|||
|
||||
An alternative way of dealing with mocking dates, or other builtin classes,
|
||||
is discussed in `this blog entry
|
||||
<http://www.williamjohnbert.com/2011/07/how-to-unit-testing-in-django-with-mocking-and-patching/>`_.
|
||||
<http://williambert.online/2011/07/how-to-unit-testing-in-django-with-mocking-and-patching/>`_.
|
||||
|
||||
|
||||
Mocking a Generator Method
|
||||
|
@ -1251,7 +1251,7 @@ With a bit of tweaking you could have the comparison function raise the
|
|||
:exc:`AssertionError` directly and provide a more useful failure message.
|
||||
|
||||
As of version 1.5, the Python testing library `PyHamcrest
|
||||
<https://pypi.python.org/pypi/PyHamcrest>`_ provides similar functionality,
|
||||
<https://pyhamcrest.readthedocs.org/>`_ provides similar functionality,
|
||||
that may be useful here, in the form of its equality matcher
|
||||
(`hamcrest.library.integration.match_equality
|
||||
<http://pyhamcrest.readthedocs.org/en/stable/integration/#module-hamcrest.library.integration.match_equality>`_).
|
||||
<https://pyhamcrest.readthedocs.org/en/release-1.8/integration/#module-hamcrest.library.integration.match_equality>`_).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue