diff options
Diffstat (limited to 'factory/containers.py')
-rw-r--r-- | factory/containers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/factory/containers.py b/factory/containers.py index 7a4c5db..4537e44 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -103,7 +103,8 @@ class LazyStub(object): if isinstance(val, LazyValue): self.__pending.append(name) val = val.evaluate(self, self.__containers) - assert name == self.__pending.pop() + last = self.__pending.pop() + assert name == last self.__values[name] = val return val else: |