Lines Matching refs:patcher
1106 def _is_started(patcher): argument
1108 return hasattr(patcher, 'is_local')
1144 patcher = _patch(
1149 patcher.attribute_name = self.attribute_name
1150 patcher.additional_patchers = [
1153 return patcher
1171 patcher = self.copy()
1172 setattr(klass, attr, patcher(attr_value))
1389 for patcher in reversed(self.additional_patchers):
1390 if _is_started(patcher):
1391 patcher.__exit__(*exc_info)
1480 patcher = _patch(
1484 patcher.attribute_name = attribute
1491 patcher.additional_patchers.append(this_patcher)
1492 return patcher