Skip to content

Commit

Permalink
Merge pull request #647 from rootart/fix-646
Browse files Browse the repository at this point in the history
#646, fix skip tests for the django.contrib.sessions.serializers.Pick…
  • Loading branch information
WisdomPill authored Jan 22, 2023
2 parents 3858086 + 2600943 commit ae6ab72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from datetime import timedelta
from typing import Optional, Type

import django
import pytest
from django.conf import settings
from django.contrib.sessions.backends.base import SessionBase
from django.contrib.sessions.backends.cache import SessionStore as CacheSession
Expand Down Expand Up @@ -365,6 +367,10 @@ def test_session_save_does_not_resurrect_session_logged_out_in_other_context(sel
class SessionTests(SessionTestsMixin, unittest.TestCase):
backend = CacheSession

@pytest.mark.skipif(
django.VERSION > (4, 2),
reason="PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708",
)
def test_actual_expiry(self):
if isinstance(
caches[DEFAULT_CACHE_ALIAS].client._serializer, MSGPackSerializer
Expand Down

0 comments on commit ae6ab72

Please sign in to comment.