From 967b0719039e98c4a2601d65379e7ebdef2a43b1 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Jun 11 2019 23:06:07 +0000 Subject: Fix FTBFS with Python 3.8 (#1719145) --- diff --git a/python-suds.spec b/python-suds.spec index 1df2c0c..d3a0b64 100644 --- a/python-suds.spec +++ b/python-suds.spec @@ -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 - 0.7-0.12.94664ddd46a6 +- Fix FTBFS with Python 3.8 (#1719145) + * Tue Jun 11 2019 Scott Talbert - 0.7-0.11.94664ddd46a6 - Adapt to support pytest4 (#1706285) diff --git a/python3.8.patch b/python3.8.patch new file mode 100644 index 0000000..1dee0da --- /dev/null +++ b/python3.8.patch @@ -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")