From d07d3ea008d24f8ad5f4f32f86cb1f89226123ae Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour Date: Thu, 6 Jan 2022 15:33:58 +0100 Subject: gnu: python-msgpack-transitional: Fix broken tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-msgpack-transitional)[arguments]: Replace references to deprecated Python methods. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 36434a4707..cf6f17493e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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 -- cgit 1.4.1