diff --git a/python-httpretty.changes b/python-httpretty.changes index 466c392..9359cb7 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 30 04:21:14 UTC 2023 - Steve Kowalik + +- Add patch relax-test-callback-response.patch: + * Relax timeout for test_callback_response (bsc#1209571) + ------------------------------------------------------------------- Thu Oct 27 16:52:32 UTC 2022 - Sarah Kriesch diff --git a/python-httpretty.spec b/python-httpretty.spec index dd39efd..1ef4b03 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -1,7 +1,7 @@ # # spec file for package python-httpretty # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-httpretty Version: 1.1.4 Release: 0 @@ -34,6 +32,8 @@ Patch1: 453-fix-tests-pytest.patch Patch2: double-slash-paths.patch #PATCH-FIX-UPSTREAM 460-fix-tests-two-miliseconds Patch3: 460-miliseconds_tests.patch +# PATCH-FIX-OPENSUSE Relax the time for one test case from 2ms to 3ms. +Patch4: relax-test-callback-response.patch BuildRequires: %{python_module boto3} BuildRequires: %{python_module eventlet} BuildRequires: %{python_module fakeredis} diff --git a/relax-test-callback-response.patch b/relax-test-callback-response.patch new file mode 100644 index 0000000..f814683 --- /dev/null +++ b/relax-test-callback-response.patch @@ -0,0 +1,13 @@ +Index: httpretty-1.1.4/tests/functional/test_requests.py +=================================================================== +--- httpretty-1.1.4.orig/tests/functional/test_requests.py ++++ httpretty-1.1.4/tests/functional/test_requests.py +@@ -456,7 +456,7 @@ def test_multipart(): + + + @httprettified +-@within(two=miliseconds) ++@within(three=miliseconds) + def test_callback_response(now): + ("HTTPretty should call a callback function and set its return value as the body of the response" + " requests")