File: 0008-Fix-the-URL-in-TestFeedExporterSignals.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-- 706 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: Wed, 29 Oct 2025 20:03:05 +0500
Subject: Fix the URL in TestFeedExporterSignals.

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

diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py
index d557792..588af36 100644
--- a/tests/test_feedexport.py
+++ b/tests/test_feedexport.py
@@ -2690,7 +2690,7 @@ class TestFeedExporterSignals:
     with tempfile.NamedTemporaryFile(suffix="json") as tmp:
         settings = {
             "FEEDS": {
-                f"file://{tmp.name}": {
+                printf_escape(path_to_url(tmp.name)): {
                     "format": "json",
                 },
             },