diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-19 07:52:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-19 09:21:10 +0200 |
commit | a0d2dae7c192629e561eae046f6cfa6f094f15c1 (patch) | |
tree | 07ac1d9a76904b8f351440f4738e51fc09ba27bb /dev-python/bleach/files | |
parent | dev-python/boto3: Bump to 1.15.1 (diff) | |
download | gentoo-a0d2dae7c192629e561eae046f6cfa6f094f15c1.tar.gz gentoo-a0d2dae7c192629e561eae046f6cfa6f094f15c1.tar.bz2 gentoo-a0d2dae7c192629e561eae046f6cfa6f094f15c1.zip |
dev-python/bleach: Bump to 3.2.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/bleach/files')
-rw-r--r-- | dev-python/bleach/files/bleach-3.2.1-py39.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/bleach/files/bleach-3.2.1-py39.patch b/dev-python/bleach/files/bleach-3.2.1-py39.patch new file mode 100644 index 000000000000..b281031b3df0 --- /dev/null +++ b/dev-python/bleach/files/bleach-3.2.1-py39.patch @@ -0,0 +1,48 @@ +From ccb0d5e98b30577fe27016b5bc774388f02db876 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 19 Sep 2020 08:00:51 +0200 +Subject: [PATCH] Remove tests relying on py<3.9 behavior + +--- + tests/test_clean.py | 15 --------------- + 1 file changed, 15 deletions(-) + +diff --git a/tests/test_clean.py b/tests/test_clean.py +index 1cd58df..2b2f7c5 100644 +--- a/tests/test_clean.py ++++ b/tests/test_clean.py +@@ -499,31 +499,16 @@ def test_attributes_list(): + {"protocols": ["http"]}, + '<a href="example.com">valid</a>', + ), +- ( +- '<a href="example.com:8000">valid</a>', +- {"protocols": ["http"]}, +- '<a href="example.com:8000">valid</a>', +- ), + ( + '<a href="localhost">valid</a>', + {"protocols": ["http"]}, + '<a href="localhost">valid</a>', + ), +- ( +- '<a href="localhost:8000">valid</a>', +- {"protocols": ["http"]}, +- '<a href="localhost:8000">valid</a>', +- ), + ( + '<a href="192.168.100.100">valid</a>', + {"protocols": ["http"]}, + '<a href="192.168.100.100">valid</a>', + ), +- ( +- '<a href="192.168.100.100:8000">valid</a>', +- {"protocols": ["http"]}, +- '<a href="192.168.100.100:8000">valid</a>', +- ), + # Disallow implicit http if disallowed + ('<a href="example.com">foo</a>', {"protocols": []}, "<a>foo</a>"), + ('<a href="example.com:8000">foo</a>', {"protocols": []}, "<a>foo</a>"), +-- +2.28.0 + |