Skip to content

Commit 97cc04a

Browse files
Update Doc/library/unittest.mock-examples.rst
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent aa61223 commit 97cc04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/unittest.mock-examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ this list of calls for us::
600600
Partial mocking
601601
~~~~~~~~~~~~~~~
602602

603-
For some tests you may want to mock out a call to :meth:`datetime.date.today`
603+
For some tests, you may want to mock out a call to :meth:`datetime.date.today`
604604
to return a known date, but you may not want to prevent the code under test from
605605
creating new date objects. Unfortunately :class:`datetime.date` is written in C, and
606606
so you cannot just monkey-patch out the static :meth:`datetime.date.today` method.

0 commit comments

Comments
 (0)