diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-13 12:17:01 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-13 12:17:01 +0100 |
| commit | b64c771bcb2ec336dd549cfe9d072340c886f3c9 (patch) | |
| tree | 444d93e43d802c6311731b70cb8234ceb27cc9f1 /gitdb/test/performance | |
| parent | 37393af41229712a4bf46184259c4ed927d31093 (diff) | |
| download | gitdb-b64c771bcb2ec336dd549cfe9d072340c886f3c9.tar.gz | |
Fixed all applicable lint issues
Diffstat (limited to 'gitdb/test/performance')
| -rw-r--r-- | gitdb/test/performance/lib.py | 4 | ||||
| -rw-r--r-- | gitdb/test/performance/test_pack.py | 2 | ||||
| -rw-r--r-- | gitdb/test/performance/test_pack_streaming.py | 1 | ||||
| -rw-r--r-- | gitdb/test/performance/test_stream.py | 18 |
4 files changed, 9 insertions, 16 deletions
diff --git a/gitdb/test/performance/lib.py b/gitdb/test/performance/lib.py index 3563fcf..5b5c40e 100644 --- a/gitdb/test/performance/lib.py +++ b/gitdb/test/performance/lib.py @@ -4,9 +4,7 @@ # the New BSD License: http://www.opensource.org/licenses/bsd-license.php """Contains library functions""" import os -from gitdb.test.lib import * -import shutil -import tempfile +from gitdb.test.lib import TestBase #{ Invvariants diff --git a/gitdb/test/performance/test_pack.py b/gitdb/test/performance/test_pack.py index 63856e2..b18e31a 100644 --- a/gitdb/test/performance/test_pack.py +++ b/gitdb/test/performance/test_pack.py @@ -9,11 +9,11 @@ from lib import ( from gitdb.exc import UnsupportedOperation from gitdb.db.pack import PackedDB +from gitdb.utils.compat import xrange import sys import os from time import time -import random from nose import SkipTest diff --git a/gitdb/test/performance/test_pack_streaming.py b/gitdb/test/performance/test_pack_streaming.py index c66e60c..2974263 100644 --- a/gitdb/test/performance/test_pack_streaming.py +++ b/gitdb/test/performance/test_pack_streaming.py @@ -38,7 +38,6 @@ class TestPackStreamingPerformance(TestBigRepoR): ni = 5000 count = 0 - total_size = 0 st = time() for sha in pdb.sha_iter(): count += 1 diff --git a/gitdb/test/performance/test_stream.py b/gitdb/test/performance/test_stream.py index 010003d..6c8f715 100644 --- a/gitdb/test/performance/test_stream.py +++ b/gitdb/test/performance/test_stream.py @@ -4,13 +4,13 @@ # the New BSD License: http://www.opensource.org/licenses/bsd-license.php """Performance data streaming performance""" from lib import TestBigRepoR -from gitdb.db import * -from gitdb.base import * -from gitdb.stream import * +from gitdb.db import LooseObjectDB +from gitdb.stream import IStream + from gitdb.util import ( - pool, - bin_to_hex - ) + pool, + bin_to_hex +) from gitdb.typ import str_blob_type from gitdb.fun import chunk_size @@ -19,19 +19,15 @@ from async import ( ChannelThreadTask, ) -from cStringIO import StringIO from time import time import os import sys -import stat -import subprocess from lib import ( - TestBigRepoR, make_memory_file, with_rw_directory - ) +) #{ Utilities |
