forked from pool/python-pyjwkest
- Update to 1.4.2 * no release notes * released on PyPI but not tagged in git repository - Add py39-tobytes.patch for Python 3.9 compat - Not actively maintained anymore. Just packaged because it is a BuildRequirement of other packages * python-oic * python-django-oidc-provider OBS-URL: https://build.opensuse.org/request/show/889634 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyjwkest?expand=0&rev=3
17 lines
584 B
Diff
17 lines
584 B
Diff
Index: pyjwkest-9ed11b406911dde70b281b2473a976ec88afd1a9/tests/test_4_jwe.py
|
|
===================================================================
|
|
--- pyjwkest-9ed11b406911dde70b281b2473a976ec88afd1a9.orig/tests/test_4_jwe.py
|
|
+++ pyjwkest-9ed11b406911dde70b281b2473a976ec88afd1a9/tests/test_4_jwe.py
|
|
@@ -25,7 +25,10 @@ __author__ = 'rohe0002'
|
|
|
|
|
|
def intarr2bytes(arr):
|
|
- return array.array('B', arr).tostring()
|
|
+ if sys.version_info[0] >= 3:
|
|
+ return array.array('B', arr).tobytes()
|
|
+ else:
|
|
+ return array.array('B', arr).tostring()
|
|
|
|
|
|
def bytes2intarr(bts):
|