File: 0004-Fix-test_non_pickable_object.patch

package info (click to toggle)
python-scrapy 2.13.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,948 kB
  • sloc: python: 51,970; xml: 199; makefile: 25; sh: 7
file content (21 lines) | stat: -rw-r--r-- 886 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Andrey Rakhmatullin <wrar@wrar.name>
Date: Mon, 27 Oct 2025 19:28:33 +0500
Subject: Fix test_non_pickable_object.

---
 tests/test_squeues.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_squeues.py b/tests/test_squeues.py
index 21bbeec..abc2f29 100644
--- a/tests/test_squeues.py
+++ b/tests/test_squeues.py
@@ -120,7 +120,7 @@ class PickleFifoDiskQueueTest(t.FifoDiskQueueTest, FifoDiskQueueTestMixin):
             match="Can't (get|pickle) local object|Can't pickle .*: it's not found as",
         ) as exc_info:
             q.push(lambda x: x)
-        if hasattr(sys, "pypy_version_info"):
+        if sys.version_info >= (3, 14) or hasattr(sys, "pypy_version_info"):
             assert isinstance(exc_info.value.__context__, pickle.PicklingError)
         else:
             assert isinstance(exc_info.value.__context__, AttributeError)