diff options
| author | stuertz <js@contact.de> | 2017-03-26 15:48:07 +0200 |
|---|---|---|
| committer | stuertz <js@contact.de> | 2017-03-26 15:48:07 +0200 |
| commit | 57c3a4fc59b6babe71859b2bf92b2b2fc909ce2a (patch) | |
| tree | a88b52694a95b01ffa487c0c64cd8277816c79f7 /gitdb/test/performance | |
| parent | 30329354b370ed6bfac74290ce0c5d2ab17307d1 (diff) | |
| download | gitdb-57c3a4fc59b6babe71859b2bf92b2b2fc909ce2a.tar.gz | |
Fixed Tests / Code for Windows.
Sometimes the OS or some other process has the handle to file a bit longer, and the file could not be deleted immediatly.
Retry 10 Times with 100ms distance.
Diffstat (limited to 'gitdb/test/performance')
| -rw-r--r-- | gitdb/test/performance/test_stream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitdb/test/performance/test_stream.py b/gitdb/test/performance/test_stream.py index 704f4d0..bd8953e 100644 --- a/gitdb/test/performance/test_stream.py +++ b/gitdb/test/performance/test_stream.py @@ -9,7 +9,7 @@ from gitdb.test.performance.lib import TestBigRepoR from gitdb.db import LooseObjectDB from gitdb import IStream -from gitdb.util import bin_to_hex +from gitdb.util import bin_to_hex, remove from gitdb.fun import chunk_size from time import time @@ -104,5 +104,5 @@ 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 - os.remove(db_file) + remove(db_file) # END for each randomization factor |
