forked from pool/python-PyJWT
- 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
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
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."
|