forked from pool/python-PyJWT
Accepting request 652151 from home:glaubitz:branches:devel:languages:python
- Add patch to fix testsuite with pytest 3.9.0: * pyjwt-pytest390.patch OBS-URL: https://build.opensuse.org/request/show/652151 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=37
This commit is contained in:
committed by
Git OBS Bridge
parent
d2ea07281f
commit
15ac49e4b8
24
pyjwt-pytest390.patch
Normal file
24
pyjwt-pytest390.patch
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
diff -Nru PyJWT-1.6.4.orig/tests/test_api_jws.py PyJWT-1.6.4/tests/test_api_jws.py
|
||||||
|
--- PyJWT-1.6.4.orig/tests/test_api_jws.py 2018-03-03 15:45:20.000000000 +0100
|
||||||
|
+++ PyJWT-1.6.4/tests/test_api_jws.py 2018-11-27 12:48:14.393379717 +0100
|
||||||
|
@@ -294,7 +294,7 @@
|
||||||
|
jws.decode, example_jws, key=example_secret,
|
||||||
|
options={'verify_signature': False},
|
||||||
|
)
|
||||||
|
- except AssertionError:
|
||||||
|
+ except pytest.fail.Exception:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
assert False, "Unexpected DeprecationWarning raised."
|
||||||
|
diff -Nru PyJWT-1.6.4.orig/tests/test_api_jwt.py PyJWT-1.6.4/tests/test_api_jwt.py
|
||||||
|
--- PyJWT-1.6.4.orig/tests/test_api_jwt.py 2018-03-18 14:35:35.000000000 +0100
|
||||||
|
+++ PyJWT-1.6.4/tests/test_api_jwt.py 2018-11-27 12:48:24.217463350 +0100
|
||||||
|
@@ -516,7 +516,7 @@
|
||||||
|
pytest.deprecated_call(
|
||||||
|
jwt.decode, jwt_message, secret, verify=False,
|
||||||
|
)
|
||||||
|
- except AssertionError:
|
||||||
|
+ except pytest.fail.Exception:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
assert False, "Unexpected DeprecationWarning raised."
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 27 11:52:40 UTC 2018 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Add patch to fix testsuite with pytest 3.9.0:
|
||||||
|
* pyjwt-pytest390.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 14 13:51:54 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
Wed Nov 14 13:51:54 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -26,6 +26,8 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/progrium/pyjwt
|
URL: https://github.com/progrium/pyjwt
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
|
||||||
Patch0: pyjwt-python37.patch
|
Patch0: pyjwt-python37.patch
|
||||||
|
# fix testsuite with pytest >= 3.9.0, see: https://github.com/jpadilla/pyjwt/issues/382
|
||||||
|
Patch1: pyjwt-pytest390.patch
|
||||||
BuildRequires: %{python_module cryptography >= 1.4}
|
BuildRequires: %{python_module cryptography >= 1.4}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module ecdsa}
|
BuildRequires: %{python_module ecdsa}
|
||||||
@@ -48,6 +50,7 @@ A Python implementation of JSON Web Token draft 01.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n PyJWT-%{version}
|
%setup -q -n PyJWT-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
dos2unix jwt/__main__.py
|
dos2unix jwt/__main__.py
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user