Merge pull request #3300 from JulienPalard/typo

Typo in example, os.getcwd does not take any parameter.
This commit is contained in:
Bruno Oliveira 2018-03-12 12:16:18 -03:00 committed by GitHub
commit 3909225bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 For convenience you can specify a string as ``target`` which
will be interpreted as a dotted import path, with the last part will be interpreted as a dotted import path, with the last part
being the attribute name. Example: 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. would set the ``getcwd`` function of the ``os`` module.
The ``raising`` value determines if the setattr should fail The ``raising`` value determines if the setattr should fail