Fix test failure in pcc64le
Related: rhbz#2084553
This commit is contained in:
parent
b566978e3d
commit
6f9f574433
32
Increase-timeout-in-test_request_timeout.patch
Normal file
32
Increase-timeout-in-test_request_timeout.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From b99df6cf3328f8e4aeb9db178df19b2411894b8c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sergio Correia <scorreia@redhat.com>
|
||||||
|
Date: Wed, 15 Jun 2022 21:10:52 -0300
|
||||||
|
Subject: [PATCH] Increase timeout in test_request_timeout
|
||||||
|
|
||||||
|
Some architectures -- e.g. ppc64le -- need an increased request timeout.
|
||||||
|
This situation is similar to upstream change 2195f0b72, where the
|
||||||
|
timeout was increased for Windows.
|
||||||
|
|
||||||
|
[1] https://github.com/tornadoweb/tornado/commit/2195f0b72249738
|
||||||
|
---
|
||||||
|
tornado/test/simple_httpclient_test.py | 4 +---
|
||||||
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
|
||||||
|
index eadd4ed..333de50 100644
|
||||||
|
--- a/tornado/test/simple_httpclient_test.py
|
||||||
|
+++ b/tornado/test/simple_httpclient_test.py
|
||||||
|
@@ -293,9 +293,7 @@ class SimpleHTTPClientTestMixin(object):
|
||||||
|
|
||||||
|
@skipOnTravis
|
||||||
|
def test_request_timeout(self: typing.Any):
|
||||||
|
- timeout = 0.1
|
||||||
|
- if os.name == "nt":
|
||||||
|
- timeout = 0.5
|
||||||
|
+ timeout = 0.5
|
||||||
|
|
||||||
|
with self.assertRaises(HTTPTimeoutError):
|
||||||
|
self.fetch("/trigger?wake=false", request_timeout=timeout, raise_error=True)
|
||||||
|
--
|
||||||
|
2.35.1
|
||||||
|
|
@ -11,7 +11,7 @@ ideal for real-time web services.}
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 6.1.0
|
Version: 6.1.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: Scalable, non-blocking web server and tools
|
Summary: Scalable, non-blocking web server and tools
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -21,6 +21,8 @@ Source0: https://github.com/tornadoweb/tornado/archive/v%{version}/%{srcn
|
|||||||
# Do not turn DeprecationWarning in tornado module into Exception
|
# Do not turn DeprecationWarning in tornado module into Exception
|
||||||
# fixes FTBFS with Python 3.8
|
# fixes FTBFS with Python 3.8
|
||||||
Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch
|
Patch1: Do-not-turn-DeprecationWarning-into-Exception.patch
|
||||||
|
# Fix timeout failure in architectures such as ppc64le.
|
||||||
|
Patch2: Increase-timeout-in-test_request_timeout.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
@ -66,6 +68,10 @@ export ASYNC_TEST_TIMEOUT=10
|
|||||||
%doc demos
|
%doc demos
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 15 2022 Sergio Correia <scorreia@redhat.com> - 6.1.0-8
|
||||||
|
- Fix test failure in pcc64le
|
||||||
|
Related: rhbz#2084553
|
||||||
|
|
||||||
* Wed Jun 15 2022 Sergio Correia <scorreia@redhat.com> - 6.1.0-7
|
* Wed Jun 15 2022 Sergio Correia <scorreia@redhat.com> - 6.1.0-7
|
||||||
- Add python-tornado to RHEL-9
|
- Add python-tornado to RHEL-9
|
||||||
Resolves: rhbz#2084553
|
Resolves: rhbz#2084553
|
||||||
|
Loading…
Reference in New Issue
Block a user