Merged in famousgarkin/pytest/famousgarkin/monkeypatchchdir-docstring-punctuation-1430453576841 (pull request #288)
monkeypatch.chdir docstring punctuation
This commit is contained in:
commit
e4b9603fa8
|
@ -177,8 +177,8 @@ class monkeypatch:
|
||||||
sys.path.insert(0, str(path))
|
sys.path.insert(0, str(path))
|
||||||
|
|
||||||
def chdir(self, path):
|
def chdir(self, path):
|
||||||
""" Change the current working directory to the specified path
|
""" Change the current working directory to the specified path.
|
||||||
path can be a string or a py.path.local object
|
Path can be a string or a py.path.local object.
|
||||||
"""
|
"""
|
||||||
if self._cwd is None:
|
if self._cwd is None:
|
||||||
self._cwd = os.getcwd()
|
self._cwd = os.getcwd()
|
||||||
|
|
Loading…
Reference in New Issue