Skip to content

Commit 8eb1a2b

Browse files
Update Doc/library/unittest.mock-examples.rst
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 602858c commit 8eb1a2b

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
@@ -606,7 +606,7 @@ creating new date objects. Unfortunately :class:`datetime.date` is written in C,
606606
so you cannot just monkey-patch out the static :meth:`datetime.date.today` method.
607607

608608
Instead, you can effectively wrap the date
609-
class with a mock, but passing through calls to the constructor to the real
609+
class with a mock, while passing through calls to the constructor to the real
610610
class (and returning real instances).
611611

612612
The :func:`patch decorator <patch>` is used here to

0 commit comments

Comments
 (0)