Update cmemcache test to work with newer memcacheds.
This commit is contained in:
parent
fc9c44d05f
commit
3dd7ad5fb6
10
tests.py
10
tests.py
@ -230,8 +230,14 @@ class TestCmemcached(unittest.TestCase):
|
|||||||
self.assertEqual(self.mc.get("str12345"), None)
|
self.assertEqual(self.mc.get("str12345"), None)
|
||||||
self.assertEqual(ret, True)
|
self.assertEqual(ret, True)
|
||||||
|
|
||||||
ret = self.mc.delete("hello world")
|
# This test only works with old memcacheds. This has become a "client
|
||||||
self.assertEqual(ret, False)
|
# error" in memcached.
|
||||||
|
try:
|
||||||
|
ret = self.mc.delete("hello world")
|
||||||
|
except pylibmc.ClientError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
self.assertEqual(ret, False)
|
||||||
|
|
||||||
def testGetMulti(self):
|
def testGetMulti(self):
|
||||||
self.mc.set("a", "valueA")
|
self.mc.set("a", "valueA")
|
||||||
|
Reference in New Issue
Block a user