Py3: Fix test_memcache
Change-Id: I864de1d7ef0df07246388c7c108e1bb753e15de3
This commit is contained in:
parent
c9dd7efb81
commit
010cdc2a0c
@ -297,7 +297,7 @@ class TestCacheMiddleware(unittest.TestCase):
|
|||||||
f.write(dedent(config))
|
f.write(dedent(config))
|
||||||
memcache_ring = self._loadapp(config_path)
|
memcache_ring = self._loadapp(config_path)
|
||||||
# only one server by default
|
# only one server by default
|
||||||
self.assertEqual(memcache_ring._client_cache.keys(),
|
self.assertEqual(list(memcache_ring._client_cache.keys()),
|
||||||
['127.0.0.1:11211'])
|
['127.0.0.1:11211'])
|
||||||
# extra options
|
# extra options
|
||||||
self.assertEqual(memcache_ring._connect_timeout, 0.3)
|
self.assertEqual(memcache_ring._connect_timeout, 0.3)
|
||||||
|
1
tox.ini
1
tox.ini
@ -49,6 +49,7 @@ commands =
|
|||||||
test/unit/common/middleware/test_healthcheck.py \
|
test/unit/common/middleware/test_healthcheck.py \
|
||||||
test/unit/common/middleware/test_list_endpoints.py \
|
test/unit/common/middleware/test_list_endpoints.py \
|
||||||
test/unit/common/middleware/test_listing_formats.py \
|
test/unit/common/middleware/test_listing_formats.py \
|
||||||
|
test/unit/common/middleware/test_memcache.py \
|
||||||
test/unit/common/middleware/test_proxy_logging.py \
|
test/unit/common/middleware/test_proxy_logging.py \
|
||||||
test/unit/common/middleware/test_tempauth.py \
|
test/unit/common/middleware/test_tempauth.py \
|
||||||
test/unit/common/ring \
|
test/unit/common/ring \
|
||||||
|
Loading…
Reference in New Issue
Block a user