From 28401daf221e0203061bc4384d1ddac477327bb1 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 13 Apr 2023 14:18:50 +0800 Subject: [PATCH] add settimeout method to FakeSocket --- add-settimeout-method-to-FakeSocket.patch | 24 +++++++++++++++++++++++ python-botocore.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 add-settimeout-method-to-FakeSocket.patch diff --git a/add-settimeout-method-to-FakeSocket.patch b/add-settimeout-method-to-FakeSocket.patch new file mode 100644 index 0000000..698ec52 --- /dev/null +++ b/add-settimeout-method-to-FakeSocket.patch @@ -0,0 +1,24 @@ +From e2b9b3779ad48be0e261f617b301db77a8257343 Mon Sep 17 00:00:00 2001 +From: Seth Michael Larson +Date: Thu, 10 Nov 2022 16:38:25 -0600 +Subject: [PATCH] Add a settimeout() method to FakeSocket (#2810) +Reference: https://github.com/boto/botocore/commit/e2b9b3779ad48be0e261f617b301db77a8257343 +--- + tests/unit/test_awsrequest.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tests/unit/test_awsrequest.py b/tests/unit/test_awsrequest.py +index 22bd9a746d..5370f5f80e 100644 +--- a/tests/unit/test_awsrequest.py ++++ b/tests/unit/test_awsrequest.py +@@ -58,6 +58,9 @@ def makefile(self, mode, bufsize=None): + def close(self): + pass + ++ def settimeout(self, value): ++ pass ++ + + class BytesIOWithLen(six.BytesIO): + def __len__(self): + \ No newline at end of file diff --git a/python-botocore.spec b/python-botocore.spec index 97d6494..9ee58af 100644 --- a/python-botocore.spec +++ b/python-botocore.spec @@ -1,11 +1,12 @@ %global pypi_name botocore Name: python-%{pypi_name} Version: 1.23.4 -Release: 1 +Release: 2 Summary: Low-level, data-driven core of boto 3 License: Apache-2.0 URL: https://github.com/boto/botocore Source0: https://files.pythonhosted.org/packages/b1/25/2da6559083f9dc3f9863c1dc0c18ec18098fd06990f71693c3b63777ce57/botocore-1.23.4.tar.gz +Patch0: add-settimeout-method-to-FakeSocket.patch BuildArch: noarch %description A low-level interface to a growing number of Amazon Web Services. The @@ -49,6 +50,9 @@ rm -vr tests/functional/leak %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Thu Apr 13 2023 caodongxia - 1.23.4-2 +- Add settimeout method to FakeSocket + * Mon Jan 10 2022 yaoxin - 1.23.4-1 - Upgrade python-botocore to 1.23.4 -- Gitee