File: 0007-Fix-the-URL-in-TestFeedExporterSignals.patch

package info (click to toggle)
python-scrapy 2.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,332 kB
  • sloc: python: 55,629; 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 a38a610..ed68967 100644
--- a/tests/test_feedexport.py
+++ b/tests/test_feedexport.py
@@ -2780,7 +2780,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",
                 },
             },