[packages/python-suds] - added pytest patch (kill pytest deprecation warnings)
qboosh
qboosh at pld-linux.org
Thu Mar 26 18:25:38 CET 2020
commit 358049bad899cbdbd6f06df43e4fa0aa1e48f07d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 26 18:26:49 2020 +0100
- added pytest patch (kill pytest deprecation warnings)
python-suds-pytest.patch | 23 +++++++++++++++++++++++
python-suds.spec | 4 +++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/python-suds.spec b/python-suds.spec
index 23e52c4..b0745cc 100644
--- a/python-suds.spec
+++ b/python-suds.spec
@@ -14,6 +14,7 @@ Group: Development/Languages/Python
#Source0Download: https://github.com/suds-community/suds/releases
Source0: https://github.com/suds-community/suds/archive/v%{version}/suds-%{version}.tar.gz
# Source0-md5: d4c47fec087d81f9a02f70bcc48c92c4
+Patch0: %{name}-pytest.patch
URL: https://github.com/suds-community/suds
%if %{with python2}
BuildRequires: python-devel >= 1:2.4
@@ -52,13 +53,14 @@ Suds to lekka implementacja klienta SOAP dla języka Python.
%prep
%setup -q -n suds-%{version}
+%patch0 -p1
%build
topdir=$(pwd)
%if %{with python2}
%py_build
-export LC_ALL=C.UTF-8 PYTHONIOENCODING=utf-8
+#export LC_ALL=C.UTF-8 PYTHONIOENCODING=utf-8
PYTHONPATH=$(pwd)/build-2/lib \
%{__python} -m pytest tests
diff --git a/python-suds-pytest.patch b/python-suds-pytest.patch
new file mode 100644
index 0000000..7c1b8d9
--- /dev/null
+++ b/python-suds-pytest.patch
@@ -0,0 +1,23 @@
+tests/test_xsd_builtins.py:165
+ tests/test_xsd_builtins.py:165: RemovedInPytest4Warning: Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead. For more details, see: https://docs.pytest.org/en/latest/parametrize.html
+ @pytest.mark.parametrize("source", (
+ tests/test_xsd_builtins.py:165: RemovedInPytest4Warning: Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead. For more details, see: https://docs.pytest.org/en/latest/parametrize.html
+ @pytest.mark.parametrize("source", (
+
+--- suds-0.8.4/tests/test_xsd_builtins.py.orig 2019-12-21 17:42:34.000000000 +0100
++++ suds-0.8.4/tests/test_xsd_builtins.py 2020-03-26 18:04:05.338252432 +0100
+@@ -164,10 +164,10 @@
+
+ @pytest.mark.parametrize("source", (
+ None,
+- pytest.mark.skipif(sys.version_info >= (3,),
+- reason="int == long since Python 3.0")(long(0)),
+- pytest.mark.skipif(sys.version_info >= (3,),
+- reason="int == long since Python 3.0")(long(1)),
++ pytest.param(long(0), marks=pytest.mark.skipif(sys.version_info >= (3,),
++ reason="int == long since Python 3.0")),
++ pytest.param(long(1), marks=pytest.mark.skipif(sys.version_info >= (3,),
++ reason="int == long since Python 3.0")),
+ "x",
+ "True",
+ "False",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-suds.git/commitdiff/358049bad899cbdbd6f06df43e4fa0aa1e48f07d
More information about the pld-cvs-commit
mailing list