Fix FTBFS with Python 3.8 (#1719145)

This commit is contained in:
Scott Talbert 2019-06-11 19:06:07 -04:00
parent 393aabe0f8
commit 967b071903
2 changed files with 19 additions and 1 deletions

View File

@ -21,10 +21,11 @@ services and WSDL based objects can be easily inspected.
Summary: %{sum}
Name: python-suds
Version: 0.7
Release: 0.11.%{shortcommit}%{?dist}
Release: 0.12.%{shortcommit}%{?dist}
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
Patch0: fix_http_test.patch
Patch1: pytest4.patch
Patch2: python3.8.patch
License: LGPLv3+
BuildArch: noarch
URL: https://bitbucket.org/jurko/suds
@ -51,6 +52,7 @@ mv jurko-suds-%{shortcommit} %{py2_builddir}
pushd %{py2_builddir}
%patch0 -p1
%patch1 -p1
%patch2 -p1
popd
%if 0%{?with_python3}
cp -a %{py2_builddir} %{py3_builddir}
@ -99,6 +101,9 @@ popd
%endif
%changelog
* Tue Jun 11 2019 Scott Talbert <swt@techie.net> - 0.7-0.12.94664ddd46a6
- Fix FTBFS with Python 3.8 (#1719145)
* Tue Jun 11 2019 Scott Talbert <swt@techie.net> - 0.7-0.11.94664ddd46a6
- Adapt to support pytest4 (#1706285)

13
python3.8.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/tests/test_transport.py b/tests/test_transport.py
index d045aaf..cbcdecd 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -140,7 +140,7 @@ and I'm all out of gum."""),
("", {}, "\n\n\n\n\n\n"),
("", {}, u("\u4E2D\u539F\u5343\u519B\u9010\u848B"))))
def test_string_representation_with_message(self, url, headers, message):
- for key, value in headers.items():
+ for key, value in list(headers.items()):
old_key = key
if isinstance(key, text_type):
key = key.encode("utf-8")