add settimeout method to FakeSocket

This commit is contained in:
caodongxia 2023-04-13 09:52:40 +08:00
parent dd18638903
commit ed69aef2bb
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From e2b9b3779ad48be0e261f617b301db77a8257343 Mon Sep 17 00:00:00 2001
From: Seth Michael Larson <sethmichaellarson@gmail.com>
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):

View File

@ -2,11 +2,12 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.24.7 Version: 1.24.7
Release: 1 Release: 2
Summary: Low-level, data-driven core of boto 3 Summary: Low-level, data-driven core of boto 3
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/boto/botocore URL: https://github.com/boto/botocore
Source0: https://files.pythonhosted.org/packages/b6/27/82dcaa46588c3071b195f75ec1c3ce5d6ce8aad26701dcc661cbca4961be/botocore-1.24.7.tar.gz Source0: https://files.pythonhosted.org/packages/b6/27/82dcaa46588c3071b195f75ec1c3ce5d6ce8aad26701dcc661cbca4961be/botocore-1.24.7.tar.gz
Patch0: add-settimeout-method-to-FakeSocket.patch
BuildArch: noarch BuildArch: noarch
%description %description
A low-level interface to a growing number of Amazon Web Services. The A low-level interface to a growing number of Amazon Web Services. The
@ -83,6 +84,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Thu Apr 13 2023 caodongxia <caodongxia@h-partners.com> - 1.24.7-2
- Add settimeout method to FakeSocket
* Fri Oct 14 2022 Ge Wang <wangge20@h-partners.com> - 1.24.7-1 * Fri Oct 14 2022 Ge Wang <wangge20@h-partners.com> - 1.24.7-1
- Upgrade to version 1.24.7 - Upgrade to version 1.24.7