Skip to content

Commit

Permalink
invalid keys in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Jan 13, 2024
1 parent 5369e41 commit 4079333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions libmc/_client.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions tests/test_client_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4079333

Please sign in to comment.