We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa61223 commit 97cc04aCopy full SHA for 97cc04a
Doc/library/unittest.mock-examples.rst
@@ -600,7 +600,7 @@ this list of calls for us::
600
Partial mocking
601
~~~~~~~~~~~~~~~
602
603
-For some tests you may want to mock out a call to :meth:`datetime.date.today`
+For some tests, you may want to mock out a call to :meth:`datetime.date.today`
604
to return a known date, but you may not want to prevent the code under test from
605
creating new date objects. Unfortunately :class:`datetime.date` is written in C, and
606
so you cannot just monkey-patch out the static :meth:`datetime.date.today` method.
0 commit comments