Skip to content

Commit

Permalink
Fix gc_blob_removes_uncommitted_data
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgedmin committed Feb 19, 2013
1 parent 5e9c781 commit c59b0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZODB/tests/testblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def gc_blob_removes_uncommitted_data():
>>> fname = blob._p_blob_uncommitted
>>> os.path.exists(fname)
True
>>> blob = None
>>> file = blob = None
>>> os.path.exists(fname)
False
"""
Expand Down

0 comments on commit c59b0ff

Please sign in to comment.