Closed iurisilvio closed 1 year ago
Oh this is behavior of the client too. Unexpected for me...
Oops, it really happens. I was trying the real client without serde defined. They are really working different.
import pymemcache
from pymemcache.test.utils import MockMemcacheClient
def test_client(client_class):
client = client_class("localhost", serde=pymemcache.serde.pickle_serde)
client.set("abc", "abc")
value = client.get("abc")
assert value == "abc"
test_client(pymemcache.Client)
test_client(MockMemcacheClient)
This test fails because it returns
b"world"
instead of a string.(updated this example using
serde
)