summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorandy <andy@andymccurdy.com>2012-04-27 15:40:55 -0700
committerandy <andy@andymccurdy.com>2012-04-27 15:40:55 -0700
commit102ec0ff2071bbd5f4e21e2b580fc1c509fd4e15 (patch)
tree9a062eba5d261426d1c45165c2212a2f2c7fac01 /tests
parent2b8103fef8a2a8772b0b0e4ac4a634157c77f33d (diff)
downloadredis-py-2.4.12.tar.gz
2.4.12, redis-py is now fork-safe2.4.12
Diffstat (limited to 'tests')
-rw-r--r--tests/connection_pool.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/connection_pool.py b/tests/connection_pool.py
index 8252cee..54cbf05 100644
--- a/tests/connection_pool.py
+++ b/tests/connection_pool.py
@@ -1,9 +1,11 @@
+import os
import redis
import unittest
class DummyConnection(object):
def __init__(self, **kwargs):
self.kwargs = kwargs
+ self.pid = os.getpid()
class ConnectionPoolTestCase(unittest.TestCase):
def get_pool(self, connection_info=None, max_connections=None):