Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
8afccfd2
Commit
8afccfd2
authored
Jun 12, 2013
by
Carl Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a bytes literal explicit.
parent
0dd5e52a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests.py
tests/testapp/tests.py
+1
-1
No files found.
tests/testapp/tests.py
View file @
8afccfd2
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment