Drop skip-failing-tests.patch

The upstream 1.7.1 release fixed the test failure.

https://github.com/jpadilla/pyjwt/issues/382
b65e1ac6dc
This commit is contained in:
Carl George 2019-03-27 10:57:05 -05:00
parent 9274db469c
commit 4683c27a96
2 changed files with 1 additions and 25 deletions

View File

@ -24,8 +24,6 @@ Summary: JSON Web Token implementation in Python
License: MIT
URL: https://github.com/jpadilla/pyjwt
Source0: %pypi_source
# https://github.com/jpadilla/pyjwt/issues/382
Patch0: skip-failing-tests.patch
BuildArch: noarch
@ -63,7 +61,7 @@ Requires: python%{python3_pkgversion}-cryptography >= 1.4.0
%prep
%autosetup -n %{srcname}-%{version} -p 1
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info
# prevent pullng in `addopts` for pytest run later
rm setup.cfg

View File

@ -1,22 +0,0 @@
diff -Nurp 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 08:45:20.000000000 -0600
+++ PyJWT-1.6.4/tests/test_api_jws.py 2018-11-04 21:56:17.427282748 -0600
@@ -281,6 +281,7 @@ class TestJWS:
pytest.deprecated_call(jws.decode, example_jws, key=example_secret)
+ @pytest.mark.skip(reason='Fails on Fedora 30')
def test_decode_no_algorithms_verify_signature_false(self, jws):
example_secret = 'secret'
example_jws = (
diff -Nurp 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 08:35:35.000000000 -0500
+++ PyJWT-1.6.4/tests/test_api_jwt.py 2018-11-04 21:56:41.598120723 -0600
@@ -508,6 +508,7 @@ class TestJWT:
secret
)
+ @pytest.mark.skip(reason='Fails on Fedora 30')
def test_decode_no_algorithms_verify_false(self, jwt, payload):
secret = 'secret'
jwt_message = jwt.encode(payload, secret)