Py3: Fix test_memcache

Change-Id: I864de1d7ef0df07246388c7c108e1bb753e15de3
This commit is contained in:
Cyril Roelandt 2018-12-03 12:52:00 +01:00
parent c9dd7efb81
commit 010cdc2a0c
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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 \