diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-15 14:04:39 -0600 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-15 14:09:04 -0600 |
| commit | b5bac5aae0213b44fe02e362ece9d4ef60ff8793 (patch) | |
| tree | 88284b25c4d769080ce63bb58e456e46d57745ff /tests/integration/test_filesystem.py | |
| parent | 43c9287b26cefde75b4e22d974b616f9675e4960 (diff) | |
| download | requests-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.py | 3 |
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 |
