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:
		
							parent
							
								
									312879fddc
								
							
						
					
					
						commit
						b95e3dc17c
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -29393,7 +29393,11 @@ writing STL files.  It supports both the text and binary forms of STL.") | ||||||
|                     (lambda _ |                     (lambda _ | ||||||
|                       (substitute* "setup.py" |                       (substitute* "setup.py" | ||||||
|                         (("test_suite = 'multipart.tests.suite'") |                         (("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") |     (home-page "https://github.com/andrew-d/python-multipart") | ||||||
|     (synopsis "Streaming multipart parser for Python") |     (synopsis "Streaming multipart parser for Python") | ||||||
|     (description |     (description | ||||||
|  |  | ||||||
		Reference in a new issue