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

* gnu/packages/python-xyz.scm (python-multipart)[arguments]: Patch instance of
yaml.load.
This commit is contained in:
Ricardo Wurmus 2022-05-05 12:27:51 +02:00
parent 312879fddc
commit b95e3dc17c
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -29393,7 +29393,11 @@ (define-public python-multipart
(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