mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: Adjust pypi test to recent changes.
This is a followup to 00762a4c4c
.
* tests/pypi.scm ("pypi->guix-package, no wheel"): Guard against
'error?' instead of 'quit'.
This commit is contained in:
parent
bc1ad69605
commit
0f1cb02362
1 changed files with 4 additions and 4 deletions
|
@ -32,6 +32,8 @@ (define-module (test-pypi)
|
||||||
#:use-module ((guix diagnostics) #:select (guix-warning-port))
|
#:use-module ((guix diagnostics) #:select (guix-warning-port))
|
||||||
#:use-module (json)
|
#:use-module (json)
|
||||||
#:use-module (srfi srfi-26)
|
#:use-module (srfi srfi-26)
|
||||||
|
#:use-module (srfi srfi-34)
|
||||||
|
#:use-module (srfi srfi-35)
|
||||||
#:use-module (srfi srfi-64)
|
#:use-module (srfi srfi-64)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (ice-9 optargs))
|
#:use-module (ice-9 optargs))
|
||||||
|
@ -265,10 +267,8 @@ (define test-metadata-with-extras-jedi "\
|
||||||
hash)
|
hash)
|
||||||
(equal? (pypi->guix-package "foo" #:version "1.0.0")
|
(equal? (pypi->guix-package "foo" #:version "1.0.0")
|
||||||
(pypi->guix-package "foo"))
|
(pypi->guix-package "foo"))
|
||||||
(catch 'quit
|
(guard (c ((error? c) #t))
|
||||||
(lambda ()
|
(pypi->guix-package "foo" #:version "42"))))
|
||||||
(pypi->guix-package "foo" #:version "42"))
|
|
||||||
(const #t))))
|
|
||||||
(x
|
(x
|
||||||
(pk 'fail x #f))))))
|
(pk 'fail x #f))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue