forked from pool/python-tornado6
- update to 6.2:
* https://www.tornadoweb.org/en/stable/releases/v6.2.0.html - drop remove-multiheader-http-test.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado6?expand=0&rev=23
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 19 16:29:16 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 6.2:
|
||||
* https://www.tornadoweb.org/en/stable/releases/v6.2.0.html
|
||||
- drop remove-multiheader-http-test.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 28 07:13:53 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-tornado6
|
||||
Version: 6.1
|
||||
Version: 6.2
|
||||
Release: 0
|
||||
Summary: Open source version of scalable, non-blocking web server that power FriendFeed
|
||||
License: Apache-2.0
|
||||
@@ -30,9 +30,7 @@ Source99: python-tornado6-rpmlintrc
|
||||
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 base >= 3.7}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pycares}
|
||||
BuildRequires: %{python_module pycurl}
|
||||
|
@@ -1,43 +0,0 @@
|
||||
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
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791
|
||||
size 497359
|
BIN
tornado-6.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
tornado-6.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user