unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 5b4a628268564ab2b15b10d81d104e7ae7f6b0b7 1267 bytes (raw)
name: gnu/packages/patches/python-w3lib-broken-test.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
From 78054f19bfe20555792b0f336b423921fe88b994 Mon Sep 17 00:00:00 2001
From: Anders Kaseorg <andersk@mit.edu>
Date: Mon, 1 Mar 2021 11:34:23 -0800
Subject: [PATCH] Remove test broken by Python CVE-2021-23336 fix

In Python 3.6.13, 3.7.10, 3.8.8, and 3.9.2, urllib.parse.parse_qsl no
longer treats ; as a separator by default
(https://bugs.python.org/issue42967).

Fixes #164.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
 tests/test_url.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/test_url.py b/tests/test_url.py
index 3ff544e..e90065c 100644
--- a/tests/test_url.py
+++ b/tests/test_url.py
@@ -299,10 +299,6 @@ def test_add_or_replace_parameter(self):
         self.assertEqual(add_or_replace_parameter(url, 'arg3', 'nv3'),
                          'http://domain/test?arg1=v1&arg2=v2&arg3=nv3')
 
-        url = 'http://domain/test?arg1=v1;arg2=v2'
-        self.assertEqual(add_or_replace_parameter(url, 'arg1', 'v3'),
-                         'http://domain/test?arg1=v3&arg2=v2')
-
         self.assertEqual(add_or_replace_parameter("http://domain/moreInfo.asp?prodID=", 'prodID', '20'),
                          'http://domain/moreInfo.asp?prodID=20')
         url = 'http://rmc-offers.co.uk/productlist.asp?BCat=2%2C60&CatID=60'

debug log:

solving 5b4a628268 ...
found 5b4a628268 in https://yhetil.org/guix-patches/3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@courrier.dev/

applying [1/1] https://yhetil.org/guix-patches/3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@courrier.dev/
diff --git a/gnu/packages/patches/python-w3lib-broken-test.patch b/gnu/packages/patches/python-w3lib-broken-test.patch
new file mode 100644
index 0000000000..5b4a628268

1:30: trailing whitespace.
 
Checking patch gnu/packages/patches/python-w3lib-broken-test.patch...
Applied patch gnu/packages/patches/python-w3lib-broken-test.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 5b4a628268564ab2b15b10d81d104e7ae7f6b0b7	gnu/packages/patches/python-w3lib-broken-test.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).