From 81f89a4dab346234fb4b305af9472ad94a4401b2 Mon Sep 17 00:00:00 2001 From: WisdomPill Date: Sun, 22 Jan 2023 16:01:42 +0200 Subject: [PATCH 1/2] Added changelog and fixed condition for pickle serializer for sessions --- changelog.d/646.bugfix | 1 + tests/test_session.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/646.bugfix diff --git a/changelog.d/646.bugfix b/changelog.d/646.bugfix new file mode 100644 index 00000000..149b155c --- /dev/null +++ b/changelog.d/646.bugfix @@ -0,0 +1 @@ +Skipping pickle serializer test for django >= 4.2 \ No newline at end of file diff --git a/tests/test_session.py b/tests/test_session.py index 8ae6d9b0..bcea9c39 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -368,7 +368,7 @@ class SessionTests(SessionTestsMixin, unittest.TestCase): backend = CacheSession @pytest.mark.skipif( - django.VERSION > (4, 2), + django.VERSION >= (4, 2), reason="PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708", ) def test_actual_expiry(self): From 1cb16078935b69e982d8f2e11efe8f70891f49c5 Mon Sep 17 00:00:00 2001 From: WisdomPill Date: Sun, 22 Jan 2023 16:03:27 +0200 Subject: [PATCH 2/2] Added line too long ignore --- tests/test_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_session.py b/tests/test_session.py index bcea9c39..36745035 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -369,7 +369,7 @@ class SessionTests(SessionTestsMixin, unittest.TestCase): @pytest.mark.skipif( django.VERSION >= (4, 2), - reason="PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708", + reason="PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708", # noqa: E501 ) def test_actual_expiry(self): if isinstance(