summaryrefslogtreecommitdiff
path: root/tests/integration/test_filesystem.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-02-15 14:04:39 -0600
committerJordan Cook <jordan.cook@pioneer.com>2022-02-15 14:09:04 -0600
commitb5bac5aae0213b44fe02e362ece9d4ef60ff8793 (patch)
tree88284b25c4d769080ce63bb58e456e46d57745ff /tests/integration/test_filesystem.py
parent43c9287b26cefde75b4e22d974b616f9675e4960 (diff)
downloadrequests-cache-b5bac5aae0213b44fe02e362ece9d4ef60ff8793.tar.gz
Fix serialization in filesystem backend with binary content that is also valid UTF-8
Diffstat (limited to 'tests/integration/test_filesystem.py')
-rw-r--r--tests/integration/test_filesystem.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/integration/test_filesystem.py b/tests/integration/test_filesystem.py
index 3707f20..4a4884e 100644
--- a/tests/integration/test_filesystem.py
+++ b/tests/integration/test_filesystem.py
@@ -1,4 +1,3 @@
-import pickle
from shutil import rmtree
from tempfile import gettempdir
@@ -20,7 +19,7 @@ class TestFileDict(BaseStorageTest):
rmtree(CACHE_NAME, ignore_errors=True)
def init_cache(self, index=0, clear=True, **kwargs):
- cache = FileDict(f'{CACHE_NAME}_{index}', serializer=pickle, use_temp=True, **kwargs)
+ cache = FileDict(f'{CACHE_NAME}_{index}', serializer='pickle', use_temp=True, **kwargs)
if clear:
cache.clear()
return cache