guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/08: gnu: python-msgpack-transitional: Fix broken tests.


From: guix-commits
Subject: 06/08: gnu: python-msgpack-transitional: Fix broken tests.
Date: Tue, 11 Jan 2022 14:35:56 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit d07d3ea008d24f8ad5f4f32f86cb1f89226123ae
Author: Tanguy Le Carrour <tanguy@bioneland.org>
AuthorDate: Thu Jan 6 15:33:58 2022 +0100

    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>
---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]