Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-bleach for openSUSE:Factory checked in at 2023-06-30 19:58:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bleach (Old) and /work/SRC/openSUSE:Factory/.python-bleach.new.13546 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bleach" Fri Jun 30 19:58:26 2023 rev:19 rq:1096012 version:6.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-bleach/python-bleach.changes 2023-05-09 13:08:11.709327142 +0200 +++ /work/SRC/openSUSE:Factory/.python-bleach.new.13546/python-bleach.changes 2023-06-30 19:58:41.973581844 +0200 @@ -1,0 +2,6 @@ +Thu Jun 29 11:31:20 UTC 2023 - Markéta Machová <[email protected]> + +- Add patch strip-spaces.patch (bsc#1212852) + * sent upstream: https://github.com/mozilla/bleach/pull/706 + +------------------------------------------------------------------- New: ---- strip-spaces.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bleach.spec ++++++ --- /var/tmp/diff_new_pack.ROQwGo/_old 2023-06-30 19:58:42.637585793 +0200 +++ /var/tmp/diff_new_pack.ROQwGo/_new 2023-06-30 19:58:42.641585817 +0200 @@ -26,6 +26,8 @@ URL: https://github.com/jsocol/bleach Source: https://files.pythonhosted.org/packages/source/b/bleach/bleach-%{version}.tar.gz Patch0: de-vendor.patch +# https://github.com/mozilla/bleach/pull/706 +Patch1: strip-spaces.patch BuildRequires: %{python_module html5lib >= 1.1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -62,8 +64,7 @@ %check # gh#mozilla/bleach#503 -# https://github.com/mozilla/bleach/issues/543 -%pytest -k 'not (test_uri_value_allowed_protocols or test_bleach_html_parser or test_css_parsing_gauntlet_regex_backtracking)' +%pytest -k 'not test_uri_value_allowed_protocols' %files %{python_files} %license LICENSE ++++++ strip-spaces.patch ++++++ Index: bleach-6.0.0/tests/test_parse_shim.py =================================================================== --- bleach-6.0.0.orig/tests/test_parse_shim.py +++ bleach-6.0.0/tests/test_parse_shim.py @@ -48,14 +48,12 @@ class ParseResult: ParseResult(scheme="non-special", netloc=":@test", path="/x"), ), ("http:foo.com", ParseResult(scheme="http", path="foo.com")), - # NOTE(willkg): The wpt tests set the scheme to http becaue that's what + # NOTE(willkg): The wpt tests set the scheme to http because that's what # the base url is. Since our parser is not using a baseurl, it sets the - # scheme to "". Further, our parser includes spaces at the beginning, - # but I don't see that as being problematic. - ("\t :foo.com \n", ParseResult(path=" :foo.com ")), + # scheme to "". # NOTE(willkg): The wpt tests set the path to "/foo/foo.com" because # the base url is at "/foo" - (" foo.com ", ParseResult(path=" foo.com ")), + ("foo.com ", ParseResult(path="foo.com ")), ("a:\t foo.com", ParseResult(scheme="a", path=" foo.com")), ( "http://f:21/ b ? d # e ",
