File: 0003-Improve-the-assumption-in-test_queue_push_pop_priori.patch

package info (click to toggle)
python-scrapy 2.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,664 kB
  • sloc: python: 52,028; xml: 199; makefile: 25; sh: 7
file content (21 lines) | stat: -rw-r--r-- 679 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, 28 Jul 2025 22:58:56 +0500
Subject: Improve the assumption in test_queue_push_pop_priorities().

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

diff --git a/tests/test_pqueues.py b/tests/test_pqueues.py
index b65f1b7..aaa5750 100644
--- a/tests/test_pqueues.py
+++ b/tests/test_pqueues.py
@@ -92,7 +92,7 @@ class TestPriorityQueue:
         assert len(queue) == 2
         assert dequeued.url == req3.url
         assert dequeued.priority == req3.priority
-        assert queue.close() == [-1, -2]
+        assert set(queue.close()) == {-1, -2}
 
 
 class TestDownloaderAwarePriorityQueue: