test/objectstore: properly enter store context
In the `store_server` test, pass the store to `enter_context`, instead of the `stack`; the latter is an interesting form of recursion, and totally not what we want.
This commit is contained in:
parent
809c9e7828
commit
e2c687e363
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ class TestObjectStore(unittest.TestCase):
|
|||
with contextlib.ExitStack() as stack:
|
||||
|
||||
store = objectstore.ObjectStore(self.store)
|
||||
stack.enter_context(stack)
|
||||
stack.enter_context(store)
|
||||
|
||||
tmpdir = tempfile.TemporaryDirectory()
|
||||
tmpdir = stack.enter_context(tmpdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue