summaryrefslogtreecommitdiff
path: root/gitdb/test
diff options
context:
space:
mode:
authorstuertz <js@contact.de>2017-03-26 22:50:56 +0200
committerstuertz <js@contact.de>2017-03-26 22:50:56 +0200
commit060e5ea18b010e4d8441a5cfad699aba69593c72 (patch)
treea386534babf8309db144f50db56d38372ce80b60 /gitdb/test
parent57c3a4fc59b6babe71859b2bf92b2b2fc909ce2a (diff)
downloadgitdb-060e5ea18b010e4d8441a5cfad699aba69593c72.tar.gz
Release the file handle, before deleting, otherwise win fails.
Diffstat (limited to 'gitdb/test')
-rw-r--r--gitdb/test/performance/test_stream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitdb/test/performance/test_stream.py b/gitdb/test/performance/test_stream.py
index bd8953e..92d28e4 100644
--- a/gitdb/test/performance/test_stream.py
+++ b/gitdb/test/performance/test_stream.py
@@ -104,5 +104,6 @@ class TestObjDBPerformance(TestBigRepoR):
(size_kib, desc, cs_kib, elapsed_readchunks, size_kib / (elapsed_readchunks or 1)), file=sys.stderr)
# del db file so we keep something to do
+ ostream = None # To release the file handle (win)
remove(db_file)
# END for each randomization factor