Commit c59b0ffc authored by Marius Gedminas's avatar Marius Gedminas

Fix gc_blob_removes_uncommitted_data

Apparently the with statement leaves a local variable pointing to the
BlobFile object, which holds a reference to the blog and prevents it
from being garbage collected.
parent 5e9c7810
...@@ -315,7 +315,7 @@ def gc_blob_removes_uncommitted_data(): ...@@ -315,7 +315,7 @@ def gc_blob_removes_uncommitted_data():
>>> fname = blob._p_blob_uncommitted >>> fname = blob._p_blob_uncommitted
>>> os.path.exists(fname) >>> os.path.exists(fname)
True True
>>> blob = None >>> file = blob = None
>>> os.path.exists(fname) >>> os.path.exists(fname)
False False
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment