diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2011-01-10 13:21:41 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2011-01-10 13:21:41 -0800 |
commit | b25b205f8e4ac612613be9f4a3d97f9353fd242d (patch) | |
tree | c208de30ce426c8b1b71ab614b9c4b5e058145fa /tests | |
parent | f26de8ec0a2ae3dc97fc7be6ce65165a1fa17ca9 (diff) | |
download | redis-py-logging.tar.gz |
split the client into two pieces -- the normal client with no logging, and a debug client with logging.logging
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py index f213321..c2c0aa8 100644 --- a/tests/server_commands.py +++ b/tests/server_commands.py @@ -1,4 +1,5 @@ import redis +from redis.client.debug import DebugClient import unittest import datetime import threading @@ -1272,7 +1273,7 @@ class BufferingHandler(logging.handlers.BufferingHandler): class LoggingTestCase(unittest.TestCase): def get_client(self): - return redis.Redis(host='localhost', port=6379, db=9) + return DebugClient(host='localhost', port=6379, db=9) def setUp(self): self.client = self.get_client() |