diff --git a/fix_test_transport.patch b/fix_test_transport.patch new file mode 100644 index 0000000..20d2cb2 --- /dev/null +++ b/fix_test_transport.patch @@ -0,0 +1,12 @@ +diff -Nur jurko-suds-94664ddd46a6/tests/test_transport.py ../jurko-suds-94664ddd46a6/tests/test_transport.py +--- jurko-suds-94664ddd46a6/tests/test_transport.py 2015-07-27 17:08:20.000000000 +0800 ++++ jurko-suds-94664ddd46a6/tests/test_transport.py 2020-06-24 17:34:24.760915206 +0800 +@@ -140,7 +140,7 @@ + ("", {}, "\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") diff --git a/python-suds.spec b/python-suds.spec index da9ef0a..c22d40f 100644 --- a/python-suds.spec +++ b/python-suds.spec @@ -1,11 +1,12 @@ Name: python-suds Version: 0.7 -Release: 2 +Release: 3 Summary: A python SOAP client License: LGPLv3+ URL: https://bitbucket.org/jurko/suds Source0: https://bitbucket.org/jurko/suds/get/94664ddd46a6.tar.bz2 Patch0: fix_http_test.patch +Patch1: fix_test_transport.patch BuildArch: noarch %description @@ -35,6 +36,7 @@ for Python licensed under LGPL. mv jurko-suds-94664ddd46a6 python2 cd python2 %patch0 -p1 +%patch1 -p1 cd - cp -a python2 python3 @@ -73,6 +75,9 @@ cd - %{python3_sitelib}/* %changelog +* Wed Jun 24 2020 wutao - 0.7-3 +- Fix transport test error + * Sun Mar 22 2020 sunguoshuai - 0.7-2 - Fix http test error.