diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-07 20:00:06 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-07 20:00:21 +0100 |
commit | 36cdfd3209909163549850709d7f12fdf1316434 (patch) | |
tree | 4aa624df4eb2b345e594764139fa264a486e437d /git/refs | |
parent | f4a49ff2dddc66bbe25af554caba2351fbf21702 (diff) | |
download | gitpython-36cdfd3209909163549850709d7f12fdf1316434.tar.gz |
Made improvements to assure test-cases don't leak file handles
At least leakage is considerably reduced.
Additionally, a test-case was added which triggers failure if auto-disposal
of resources wouldn't work.
Fixes #60
Diffstat (limited to 'git/refs')
-rw-r--r-- | git/refs/log.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/refs/log.py b/git/refs/log.py index f8dc88da..fed13608 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -204,6 +204,7 @@ class RefLog(list, Serializable): return yield new_entry(line.strip()) # END endless loop + stream.close() @classmethod def entry_at(cls, filepath, index): |