Skip to content

Commit ae6ab72

Browse files
authored
Merge pull request #647 from rootart/fix-646
#646, fix skip tests for the django.contrib.sessions.serializers.Pick…
2 parents 3858086 + 2600943 commit ae6ab72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_session.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from datetime import timedelta
44
from typing import Optional, Type
55

6+
import django
7+
import pytest
68
from django.conf import settings
79
from django.contrib.sessions.backends.base import SessionBase
810
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
365367
class 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

0 commit comments

Comments
 (0)