mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 13:17:10 -05:00
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:
parent
92c873e38a
commit
d07d3ea008
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue