File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
import base64
2
+
3
+ import django
4
+ import pytest
5
+
2
6
import unittest
3
7
from datetime import timedelta
4
8
from typing import Optional , Type
@@ -300,7 +304,6 @@ def test_decode_failure_logged_to_security(self):
300
304
self .assertEqual ({}, self .session .decode (bad_encode ))
301
305
# The failed decode is logged.
302
306
self .assertIn ("corrupted" , cm .output [0 ])
303
-
304
307
def test_actual_expiry (self ):
305
308
# this doesn't work with JSONSerializer (serializing timedelta)
306
309
with override_settings (
@@ -365,6 +368,10 @@ def test_session_save_does_not_resurrect_session_logged_out_in_other_context(sel
365
368
class SessionTests (SessionTestsMixin , unittest .TestCase ):
366
369
backend = CacheSession
367
370
371
+ @pytest .mark .skipif (
372
+ django .VERSION > (4 , 2 ),
373
+ reason = "PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708"
374
+ )
368
375
def test_actual_expiry (self ):
369
376
if isinstance (
370
377
caches [DEFAULT_CACHE_ALIAS ].client ._serializer , MSGPackSerializer
You can’t perform that action at this time.
0 commit comments