File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3
3
from datetime import timedelta
4
4
from typing import Optional , Type
5
5
6
+ import django
7
+ import pytest
6
8
from django .conf import settings
7
9
from django .contrib .sessions .backends .base import SessionBase
8
10
from django .contrib .sessions .backends .cache import SessionStore as CacheSession
@@ -365,6 +367,10 @@ def test_session_save_does_not_resurrect_session_logged_out_in_other_context(sel
365
367
class SessionTests (SessionTestsMixin , unittest .TestCase ):
366
368
backend = CacheSession
367
369
370
+ @pytest .mark .skipif (
371
+ django .VERSION > (4 , 2 ),
372
+ reason = "PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708" ,
373
+ )
368
374
def test_actual_expiry (self ):
369
375
if isinstance (
370
376
caches [DEFAULT_CACHE_ALIAS ].client ._serializer , MSGPackSerializer
You can’t perform that action at this time.
0 commit comments