diff options
author | Sean Reifschneider <sean@realgo.com> | 2023-04-16 10:06:56 -0600 |
---|---|---|
committer | Sean Reifschneider <sean@realgo.com> | 2023-04-16 10:06:56 -0600 |
commit | ab668ed17887c956af3e2af89555e31d190ab63d (patch) | |
tree | 15687151b49490ef97378299607bab18f607c878 /tests/test_memcache.py | |
parent | 488b9a8d5aba0cabfddf2287611dca80f7b65e5a (diff) | |
download | python-memcached-ab668ed17887c956af3e2af89555e31d190ab63d.tar.gz |
Removing "time" from delete and making expiry mandatory in touch.
Port of erankor's PR #30 to the latest code. In that PR, the "time"
argument to delete() is removed because it is not supported by the
protocol:
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L330
And touch requires the expiry parameter due to protocol:
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L399
Diffstat (limited to 'tests/test_memcache.py')
-rw-r--r-- | tests/test_memcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_memcache.py b/tests/test_memcache.py index d0f4857..e87dd09 100644 --- a/tests/test_memcache.py +++ b/tests/test_memcache.py @@ -245,7 +245,7 @@ class TestMemcache(unittest.TestCase): self.mc.touch('key') self.assertEqual( output.getvalue(), - "MemCached: touch expected %s, got: 'SET'\n" % b'TOUCHED' + "MemCached: touch expected %s, got: 'SET'\n" % 'TOUCHED' ) |