guix-commits
[Top][All Lists]
Advanced

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

01/06: gnu: python-multipart: Fix test failure due to PyYAML 6.


From: guix-commits
Subject: 01/06: gnu: python-multipart: Fix test failure due to PyYAML 6.
Date: Fri, 6 May 2022 04:17:57 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit b95e3dc17cc8f4ba4f7796a12c34837dd4af164b
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu May 5 12:27:51 2022 +0200

    gnu: python-multipart: Fix test failure due to PyYAML 6.
    
    * gnu/packages/python-xyz.scm (python-multipart)[arguments]: Patch instance 
of
    yaml.load.
---
 gnu/packages/python-xyz.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 82d297af3b..a37dc5e9e2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29393,7 +29393,11 @@ writing STL files.  It supports both the text and 
binary forms of STL.")
                     (lambda _
                       (substitute* "setup.py"
                         (("test_suite = 'multipart.tests.suite'")
-                         "test_suite = 
'multipart.tests.test_multipart.suite'")))))))
+                         "test_suite = 
'multipart.tests.test_multipart.suite'"))
+                      ;; Needed by PyYAML 6.0.
+                      (substitute* "multipart/tests/test_multipart.py"
+                        (("yaml_data = yaml.load\\(f\\)")
+                         "yaml_data = yaml.load(f, 
Loader=yaml.SafeLoader)")))))))
     (home-page "https://github.com/andrew-d/python-multipart";)
     (synopsis "Streaming multipart parser for Python")
     (description



reply via email to

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