!5 fix test error

Merge pull request !5 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-06-24 23:01:45 +08:00 committed by Gitee
commit 4e4e0b830b
2 changed files with 18 additions and 1 deletions

12
fix_test_transport.patch Normal file
View File

@ -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")

View File

@ -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 <wutao61@huawei.com> - 0.7-3
- Fix transport test error
* Sun Mar 22 2020 sunguoshuai <sunguoshuai@huawei.com> - 0.7-2
- Fix http test error.