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>
parent
92c873e38a
commit
d07d3ea008
|
@ -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
|
||||
|
|
Reference in New Issue