Commit 8afccfd2 authored by Carl Meyer's avatar Carl Meyer

Make a bytes literal explicit.

parent 0dd5e52a
...@@ -244,7 +244,7 @@ class RedisCacheTests(TestCase): ...@@ -244,7 +244,7 @@ class RedisCacheTests(TestCase):
def test_binary_string(self): def test_binary_string(self):
# Binary strings should be cachable # Binary strings should be cachable
from zlib import compress, decompress from zlib import compress, decompress
value = 'value_to_be_compressed' value = b'value_to_be_compressed'
compressed_value = compress(value) compressed_value = compress(value)
self.cache.set('binary1', compressed_value) self.cache.set('binary1', compressed_value)
compressed_result = self.cache.get('binary1') compressed_result = self.cache.get('binary1')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment