Fix flaky container copy issue

This commit is contained in:
Roman Mogylatov 2021-02-11 16:32:31 -05:00
parent 980f9fc2bc
commit dd6b0caffd
2 changed files with 1632 additions and 1631 deletions

File diff suppressed because it is too large Load Diff

View File

@ -84,7 +84,6 @@ class DynamicContainer(Container):
copied.provider_type = providers.Provider
copied.overridden = providers.deepcopy(self.overridden, memo)
copied.parent = providers.deepcopy(self.parent, memo)
copied.declarative_parent = self.declarative_parent
copied.__self__ = providers.deepcopy(self.__self__, memo)
@ -94,6 +93,8 @@ class DynamicContainer(Container):
for name, provider in providers.deepcopy(self.providers, memo).items():
copied.set_provider(name, provider)
copied.parent = providers.deepcopy(self.parent, memo)
return copied
def __setattr__(self, str name, object value):