diff options
author | Trevor Gamblin <trevor.gamblin@windriver.com> | 2021-06-03 11:54:05 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-06-04 07:08:13 -0700 |
commit | eada1065ae51a0f47dcbe50714972cf6c6efa8ad (patch) | |
tree | 53662cd80eb1eeb1ca3b1435256b96718dc0b689 /meta-python/recipes-devtools/python/python3-yarl | |
parent | 3018b3af38f5dc5681c58929c2cd8b0f1321c02a (diff) | |
download | meta-openembedded-eada1065ae51a0f47dcbe50714972cf6c6efa8ad.tar.gz |
python3-yarl: backport fix for test_url_query test
python3-yarl 1.6.3 still tests semicolons as URL separators, but this
test has been removed in master to avoid failures due to upstream Python
no longer supporting them by default. See:
https://bugs.python.org/issue42967
https://github.com/aio-libs/yarl/issues/563
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-yarl')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-yarl/0001-Drop-tests-for-semicolon-as-a-separator.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-yarl/0001-Drop-tests-for-semicolon-as-a-separator.patch b/meta-python/recipes-devtools/python/python3-yarl/0001-Drop-tests-for-semicolon-as-a-separator.patch new file mode 100644 index 000000000..1a9d5d02d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-yarl/0001-Drop-tests-for-semicolon-as-a-separator.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 47eabc562a8883d757e3cff487c6c6e98def5a21 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrew Svetlov <andrew.svetlov@gmail.com> | ||
3 | Date: Fri, 28 May 2021 12:42:17 +0300 | ||
4 | Subject: [PATCH] Drop tests for semicolon as a separator | ||
5 | |||
6 | yarl 1.6.3 ptests check the use of semicolons as separators in URLs, | ||
7 | which are no longer valid by default in newer versions of Python. This | ||
8 | patch is in python3-yarl master, but there is no release with it yet, so | ||
9 | backport it until there is a new release. | ||
10 | |||
11 | For more info, see: | ||
12 | https://bugs.python.org/issue42967 | ||
13 | https://github.com/aio-libs/yarl/issues/563 | ||
14 | |||
15 | Upstream-Status: Backport | ||
16 | (https://github.com/aio-libs/yarl/commit/47eabc562a8883d757e3cff487c6c6e98def5a21) | ||
17 | |||
18 | Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> | ||
19 | |||
20 | --- | ||
21 | tests/test_url_query.py | 11 ----------- | ||
22 | 1 file changed, 11 deletions(-) | ||
23 | |||
24 | diff --git a/tests/test_url_query.py b/tests/test_url_query.py | ||
25 | index d2ca640..07f858b 100644 | ||
26 | --- a/tests/test_url_query.py | ||
27 | +++ b/tests/test_url_query.py | ||
28 | @@ -60,14 +60,3 @@ def test_ampersand_as_value(): | ||
29 | u = URL("http://127.0.0.1/?a=1%26b=2") | ||
30 | assert len(u.query) == 1 | ||
31 | assert u.query["a"] == "1&b=2" | ||
32 | - | ||
33 | - | ||
34 | -def test_semicolon_as_separator(): | ||
35 | - u = URL("http://127.0.0.1/?a=1;b=2") | ||
36 | - assert len(u.query) == 2 | ||
37 | - | ||
38 | - | ||
39 | -def test_semicolon_as_value(): | ||
40 | - u = URL("http://127.0.0.1/?a=1%3Bb=2") | ||
41 | - assert len(u.query) == 1 | ||
42 | - assert u.query["a"] == "1;b=2" | ||
43 | -- | ||
44 | 2.31.1 | ||
45 | |||