Home | History | Annotate | Download | only in pymock

Lines Matching refs:patching

2 # Test tools for mocking and patching.
1192 for patching in patched.patchings:
1193 arg = patching.__enter__()
1194 entered_patchers.append(patching)
1195 if patching.attribute_name is not None:
1197 elif patching.new is DEFAULT:
1203 if (patching not in entered_patchers and
1204 _is_started(patching)):
1207 entered_patchers.append(patching)
1213 for patching in reversed(entered_patchers):
1214 patching.__exit__(*exc_info)
1289 # If we're patching out a class and there is a spec
1364 for patching in self.additional_patchers:
1365 arg = patching.__enter__()
1366 if patching.new is DEFAULT:
1554 patching applies to the indented block after the with statement. If you