me
/
guix
Archived
1
0
Fork 0

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>
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
1 changed files with 5 additions and 0 deletions

View File

@ -10870,6 +10870,11 @@ reading and writing MessagePack data.")
(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