gnu: python-requests-unixsocket: Fix tests.
* gnu/packages/python-web.scm (python-requests-unixsocket)[arguments]: Do not run tests with --pep8 option; only run tests when enabled.
This commit is contained in:
		
							parent
							
								
									b67013c8ca
								
							
						
					
					
						commit
						3eeae68af1
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
					@ -2559,9 +2559,13 @@ than Python’s urllib2 library.")
 | 
				
			||||||
             (substitute* "test-requirements.txt"
 | 
					             (substitute* "test-requirements.txt"
 | 
				
			||||||
               (("(.*)==(.*)" _ name) (string-append name "\n")))))
 | 
					               (("(.*)==(.*)" _ name) (string-append name "\n")))))
 | 
				
			||||||
         (replace 'check
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda* (#:key inputs outputs #:allow-other-keys)
 | 
					           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
 | 
				
			||||||
 | 
					             ;; Avoid a deprecation error.
 | 
				
			||||||
 | 
					             (substitute* "pytest.ini"
 | 
				
			||||||
 | 
					               (("--pep8") ""))
 | 
				
			||||||
 | 
					             (when tests?
 | 
				
			||||||
               (add-installed-pythonpath inputs outputs)
 | 
					               (add-installed-pythonpath inputs outputs)
 | 
				
			||||||
             (invoke "pytest" "-vv"))))))
 | 
					               (invoke "pytest" "-vv")))))))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     `(("python-pbr" ,python-pbr)
 | 
					     `(("python-pbr" ,python-pbr)
 | 
				
			||||||
       ("python-requests" ,python-requests)
 | 
					       ("python-requests" ,python-requests)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue