Skip to content

Commit c089668

Browse files
authored
Update test_memcached.py (bbangert#228)
Fix CI per bbangert#227 (comment)
1 parent 056d68f commit c089668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_memcached.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ def test_uses_pylibmc_client(self):
291291

292292
def test_dont_use_pylibmc_client(self):
293293
from beaker.ext.memcached import _load_client
294-
load_mock = mock.Mock()
294+
load_mock = unittest.mock.Mock()
295295
load_mock.return_value = _load_client('memcache')
296-
with mock.patch('beaker.ext.memcached._load_client', load_mock):
296+
with unittest.mock.patch('beaker.ext.memcached._load_client', load_mock):
297297
cache = Cache('test', data_dir='./cache', url=mc_url, type="ext:memcached")
298298
assert not isinstance(cache.namespace, memcached.PyLibMCNamespaceManager)
299299
assert isinstance(cache.namespace, memcached.MemcachedNamespaceManager)

0 commit comments

Comments
 (0)