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 33from datetime import timedelta
44from typing import Optional , Type
55
6+ import django
7+ import pytest
68from django .conf import settings
79from django .contrib .sessions .backends .base import SessionBase
810from 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
365367class SessionTests (SessionTestsMixin , unittest .TestCase ):
366368 backend = CacheSession
367369
370+ @pytest .mark .skipif (
371+ django .VERSION > (4 , 2 ),
372+ reason = "PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708" ,
373+ )
368374 def test_actual_expiry (self ):
369375 if isinstance (
370376 caches [DEFAULT_CACHE_ALIAS ].client ._serializer , MSGPackSerializer
You can’t perform that action at this time.
0 commit comments