gnu: python-msgpack-transitional: Fix broken tests.

* gnu/packages/python-xyz.scm (python-msgpack-transitional)[arguments]:
Replace references to deprecated Python methods.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Tanguy Le Carrour 2022-01-06 15:33:58 +01:00 committed by Ludovic Courtès
parent 92c873e38a
commit d07d3ea008
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -10870,6 +10870,11 @@ (define-public python-msgpack-transitional
(substitute* "setup.py"
(("TRANSITIONAL = False")
"TRANSITIONAL = 1"))
;; This old version is not compatible with Python 3.9
(substitute* '("test/test_buffer.py" "test/test_extension.py")
((".tostring\\(") ".tobytes("))
(substitute* '("test/test_buffer.py" "test/test_extension.py")
((".fromstring\\(") ".frombytes("))
#t))))))))
(define-public python2-msgpack