context -> value

This commit is contained in:
Dave Halter committed 2019-08-15 01:23:06 +02:00
1 parent 9e23f4d67b
commit ad4f546aca
68 files changed
+1931 -1931

No files matched your search

+1 -1
View File
@@ -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: