context -> value
This commit is contained in:
1 parent
9e23f4d67b
commit
ad4f546aca
68 files changed
+1931
-1931
No files matched your search
@@ -16,7 +16,7 @@ def traverse_parents(path, include_current=False):
|
||||
@contextmanager
|
||||
def monkeypatch(obj, attribute_name, new_value):
|
||||
"""
|
||||
Like pytest's monkeypatch, but as a context manager.
|
||||
Like pytest's monkeypatch, but as a value manager.
|
||||
"""
|
||||
old_value = getattr(obj, attribute_name)
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user