Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tornado6 for openSUSE:Factory checked in at 2022-04-30 00:44:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tornado6 (Old) and /work/SRC/openSUSE:Factory/.python-tornado6.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tornado6" Sat Apr 30 00:44:27 2022 rev:9 rq:973568 version:6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tornado6/python-tornado6.changes 2021-12-13 20:45:59.120496757 +0100 +++ /work/SRC/openSUSE:Factory/.python-tornado6.new.1538/python-tornado6.changes 2022-04-30 00:44:36.490903028 +0200 @@ -1,0 +2,6 @@ +Thu Apr 28 07:13:53 UTC 2022 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch remove-multiheader-http-test.patch: + * Do not test multi-line headers. + +------------------------------------------------------------------- New: ---- remove-multiheader-http-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tornado6.spec ++++++ --- /var/tmp/diff_new_pack.0AtfNC/_old 2022-04-30 00:44:37.102903559 +0200 +++ /var/tmp/diff_new_pack.0AtfNC/_new 2022-04-30 00:44:37.106903563 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-tornado6 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,8 @@ Patch0: ignore-resourcewarning-doctests.patch # PATCH-FIX-OPENSUSE ignore-py310-deprecation-warnings.patch -- gh#tornadoweb/tornado#3033 Patch1: ignore-py310-deprecation-warnings.patch +# PATCH-FIX-OPENSUSE Remove broken multi-line HTTP header test +Patch2: remove-multiheader-http-test.patch BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module devel} BuildRequires: %{python_module pycares} ++++++ remove-multiheader-http-test.patch ++++++ Index: tornado-6.1/tornado/test/httpclient_test.py =================================================================== --- tornado-6.1.orig/tornado/test/httpclient_test.py +++ tornado-6.1/tornado/test/httpclient_test.py @@ -505,38 +505,6 @@ Transfer-Encoding: chunked % (resp.body, value, container), ) - def test_multi_line_headers(self): - # Multi-line http headers are rare but rfc-allowed - # http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 - sock, port = bind_unused_port() - with closing(sock): - - @gen.coroutine - def accept_callback(conn, address): - stream = IOStream(conn) - request_data = yield stream.read_until(b"\r\n\r\n") - if b"HTTP/1." not in request_data: - self.skipTest("requires HTTP/1.x") - yield stream.write( - b"""\ -HTTP/1.1 200 OK -X-XSS-Protection: 1; -\tmode=block - -""".replace( - b"\n", b"\r\n" - ) - ) - stream.close() - - netutil.add_accept_handler(sock, accept_callback) # type: ignore - try: - resp = self.fetch("http://127.0.0.1:%d/" % port) - resp.rethrow() - self.assertEqual(resp.headers["X-XSS-Protection"], "1; mode=block") - finally: - self.io_loop.remove_handler(sock.fileno()) - def test_304_with_content_length(self): # According to the spec 304 responses SHOULD NOT include # Content-Length or other entity headers, but some servers do it