Typo in example, os.getcwd does not take any parameter.

This commit is contained in:
Julien Palard 2018-03-12 15:19:26 +01:00
parent 28df322500
commit e71d907d34
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class MonkeyPatch(object):
For convenience you can specify a string as ``target`` which
will be interpreted as a dotted import path, with the last part
being the attribute name. Example:
``monkeypatch.setattr("os.getcwd", lambda x: "/")``
``monkeypatch.setattr("os.getcwd", lambda: "/")``
would set the ``getcwd`` function of the ``os`` module.
The ``raising`` value determines if the setattr should fail