diff --git a/tests/pypi.scm b/tests/pypi.scm index 88bb0a3116..359dd58bb1 100644 --- a/tests/pypi.scm +++ b/tests/pypi.scm @@ -245,7 +245,7 @@ Requires-Dist: pytest (>=3.1.0); extra == 'testing' (string-length test-json-1))) ("https://example.com/foo-1.0.0-py2.py3-none-any.whl" #f) (_ (error "Unexpected URL: " url))))) - (match (pypi->guix-package "foo") + (match (pk 'found (pypi->guix-package "foo")) (('package ('name "python-foo") ('version "1.0.0") @@ -265,10 +265,10 @@ Requires-Dist: pytest (>=3.1.0); extra == 'testing' (and (string=? (bytevector->nix-base32-string test-source-hash) hash) - (equal? (pypi->guix-package "foo" #:version "1.0.0") - (pypi->guix-package "foo")) - (guard (c ((error? c) #t)) - (pypi->guix-package "foo" #:version "42")))) + (equal? (pk 'foo@1.0.0 (pypi->guix-package "foo" #:version "1.0.0")) + (pk 'foo@?? (pypi->guix-package "foo"))) + (guard (c ((error? c) (pk 'c c #t))) + (pk 'n (pypi->guix-package "foo" #:version "42"))))) (x (pk 'fail x #f))))))