mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Fix flaky container copy issue
This commit is contained in:
parent
980f9fc2bc
commit
dd6b0caffd
File diff suppressed because it is too large
Load Diff
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user