gnu: python-anyio: Replace python-pytest-trio with python-trio.

* gnu/packages/python-xyz.scm (python-anyio)
[phases]{check}: Remove extraneous add-installed-pythonpath call.
Expound comment about IPv6 issues.
[native-inputs]: Use regular python-pytest.  Replace python-pytest-trio by
python-trio.
This commit is contained in:
Maxim Cournoyer 2022-04-13 10:36:21 -04:00
parent 0f446f1bc4
commit abb7617f20
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -25610,43 +25610,44 @@ (define-public python-anyio
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "-p" "no:asyncio"
"-m" "not network"
"-k"
(string-append
"not test_is_block_device"
(invoke
"pytest" "-vv" "-p" "no:asyncio"
"-m" "not network"
"-k"
(string-append
"not test_is_block_device"
;; These fail because of network (or specifically
;; IPv6 network) access.
" and not test_accept"
" and not test_accept_after_close"
" and not test_close_during_receive"
" and not test_close_from_other_task"
" and not test_concurrent_receive"
" and not test_concurrent_send"
" and not test_connect_tcp_with_tls"
" and not test_connect_tcp_with_tls_cert_check_fail"
" and not test_connection_refused"
" and not test_extra_attributes"
" and not test_getaddrinfo"
" and not test_getnameinfo"
" and not test_happy_eyeballs"
" and not test_iterate"
" and not test_receive_after_close"
" and not test_receive_timeout"
" and not test_reuse_port"
" and not test_run_process"
" and not test_send_after_close"
" and not test_send_after_eof"
" and not test_send_after_peer_closed"
" and not test_send_eof"
" and not test_send_large_buffer"
" and not test_send_receive"
" and not test_socket_options"
" and not test_unretrieved_future_exception_server_crash"))))))))
;; These fail because of network (or specifically IPv6
;; network) access (see:
;; https://github.com/agronholm/anyio/issues/417).
" and not test_accept"
" and not test_accept_after_close"
" and not test_close_during_receive"
" and not test_close_from_other_task"
" and not test_concurrent_receive"
" and not test_concurrent_send"
" and not test_connect_tcp_with_tls"
" and not test_connect_tcp_with_tls_cert_check_fail"
" and not test_connection_refused"
" and not test_extra_attributes"
" and not test_getaddrinfo"
" and not test_getnameinfo"
" and not test_happy_eyeballs"
" and not test_iterate"
" and not test_receive_after_close"
" and not test_receive_timeout"
" and not test_reuse_port"
" and not test_run_process"
" and not test_send_after_close"
" and not test_send_after_eof"
" and not test_send_after_peer_closed"
" and not test_send_eof"
" and not test_send_large_buffer"
" and not test_send_receive"
" and not test_socket_options"
" and not test_unretrieved_future_exception_server_crash"))))))))
(propagated-inputs
(list python-contextvars
python-dataclasses
@ -25658,9 +25659,8 @@ (define-public python-anyio
python-coverage
python-hypothesis
python-mock
python-pytest-6
python-pytest
python-pytest-mock
python-pytest-trio
python-setuptools-scm
python-trio
python-trustme