From 407933379aeced7df6797cf309ca837e4bc2f965 Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Fri, 12 Jan 2024 16:42:02 -0800 Subject: [PATCH] invalid keys in test --- libmc/_client.pyx | 1 + tests/test_client_pool.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libmc/_client.pyx b/libmc/_client.pyx index 6c130297..b7162b78 100644 --- a/libmc/_client.pyx +++ b/libmc/_client.pyx @@ -1191,6 +1191,7 @@ cdef class PyClientPool(PyClientSettings): self.release(worker) # repeated from PyClient because cython can't handle fused types in classes + # https://github.com/cython/cython/issues/3283 cdef connect(self): return _update_servers(self._imp, self.servers, True) diff --git a/tests/test_client_pool.py b/tests/test_client_pool.py index 707c43f8..6344199f 100644 --- a/tests/test_client_pool.py +++ b/tests/test_client_pool.py @@ -18,8 +18,9 @@ def test_acquire(self): def test_pool_client_misc(self, i=0): with self.pool.client() as mc: - tid = str(mc._get_current_thread_ident() + (i,)) - f, t = 'foo ' + tid, 'tuiche ' + tid + tid = mc._get_current_thread_ident() + (i,) + tid = "_".join(map(str, tid)) + f, t = 'foo_' + tid, 'tuiche_' + tid mc.get_multi([f, t]) mc.delete(f) mc.delete(t)