MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / copy

Method copy

tools/python-3.11.9-amd64/Lib/unittest/mock.py:1317–1327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1315
1316
1317 def copy(self):
1318 patcher = _patch(
1319 self.getter, self.attribute, self.new, self.spec,
1320 self.create, self.spec_set,
1321 self.autospec, self.new_callable, self.kwargs
1322 )
1323 patcher.attribute_name = self.attribute_name
1324 patcher.additional_patchers = [
1325 p.copy() for p in self.additional_patchers
1326 ]
1327 return patcher
1328
1329
1330 def __call__(self, func):

Calls 1

_patchClass · 0.70