Skip to content

Commit 5a3b84d

Browse files
oklenaCAM-Gerlach
andauthored
removed whitespace
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
1 parent 5cf5edc commit 5a3b84d

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
@@ -747,7 +747,7 @@ Sometimes a test needs to patch an *unbound method*, which means patching the
747747
method on the class rather than on the instance. In order to make assertions
748748
about which objects were calling this particular method, you need to pass
749749
``self`` as the first argument. The issue is that you can't patch with a mock for
750-
this, because if you replace an unbound method with a mock it doesn't become
750+
this, because if you replace an unbound method with a mock it doesn't become
751751
a bound method when fetched from the instance, and so it doesn't get ``self``
752752
passed in. The workaround is to patch the unbound method with a real function
753753
instead. The :func:`patch` decorator makes it so simple to patch out methods

0 commit comments

Comments
 (0)