Lines Matching refs:patcher
1113 def _is_started(patcher):
1115 return hasattr(patcher, 'is_local')
1151 patcher = _patch(
1156 patcher.attribute_name = self.attribute_name
1157 patcher.additional_patchers = [
1160 return patcher
1178 patcher = self.copy()
1179 setattr(klass, attr, patcher(attr_value))
1208 # the patcher may have been started, but an exception
1376 raise RuntimeError('stop called on unstarted patcher')
1392 for patcher in reversed(self.additional_patchers):
1393 if _is_started(patcher):
1394 patcher.__exit__(*exc_info)
1485 patcher = _patch(
1489 patcher.attribute_name = attribute
1496 patcher.additional_patchers.append(this_patcher)
1497 return patcher