diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2011-05-22 21:34:42 -0700 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2011-05-22 21:34:42 -0700 |
| commit | def45c6133358a79274815e738e6c4005e10e188 (patch) | |
| tree | aa5204710a1d29e03b2bbf28442d20062d1871f2 | |
| parent | 21c9d98865a5253be0a2045a96ca3a8da30d9c4f (diff) | |
| download | redis-py-def45c6133358a79274815e738e6c4005e10e188.tar.gz | |
removing unnecessary imports
| -rw-r--r-- | redis/client.py | 6 | ||||
| -rw-r--r-- | tests/pipeline.py | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/redis/client.py b/redis/client.py index 5ad8ecb..3d0e6b7 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1,12 +1,10 @@ import datetime import time -from itertools import chain, imap, islice, izip, starmap -from redis.connection import ConnectionPool, Connection +from itertools import chain, imap, izip, starmap +from redis.connection import ConnectionPool from redis.exceptions import ( - AuthenticationError, ConnectionError, DataError, - PubSubError, RedisError, ResponseError, WatchError, diff --git a/tests/pipeline.py b/tests/pipeline.py index dcbfb0a..a0f00a9 100644 --- a/tests/pipeline.py +++ b/tests/pipeline.py @@ -46,11 +46,6 @@ class PipelineTestCase(unittest.TestCase): self.assertEquals(pipe.set('z', 'zzz').execute(), [True]) self.assertEquals(self.client['z'], 'zzz') - def test_pipeline_cannot_select(self): - pipe = self.client.pipeline() - self.assertRaises(redis.RedisError, - pipe.select, 'localhost', 6379, db=9) - def test_pipeline_no_transaction(self): pipe = self.client.pipeline(transaction=False) pipe.set('a', 'a1').set('b', 'b1').set('c', 'c1') |
