From c8bae2c3a4b5c332bc17150a215c3633f310ead2 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 18 Jan 2026 21:18:56 +0100 Subject: [PATCH] gnu: python-uvicorn: Update to 0.40.0. * gnu/packages/python-web.scm (python-uvicorn): Update to 0.40.0. [arguments] : Ignore resource warning. [native-inputs]: Add python-pytest-xdist. Replace python-pytest-asyncio-0.26 by python-pytest-asyncio. Change-Id: I0debd320aea58c775f60c4409420937031b2ae66 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index dc40c9167b..deaec1ef55 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -9806,22 +9806,25 @@ cython_always = true")))))))) (define-public python-uvicorn (package (name "python-uvicorn") - (version "0.34.0") + (version "0.40.0") (source (origin - ;; PyPI tarball has no tests. (method git-fetch) (uri (git-reference (url "https://github.com/encode/uvicorn") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "05lkxnpzmr0kik81kdcvavjvvc4d1lgmw88mr4vbwsqk147wgqbc")))) + (base32 "0laplrb2sf9jxv4prhrsqf8kpynipqml2idqq4fr7ikij8qsz6b2")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "-o" "asyncio_mode=auto" + ;; After tests have been passed successfully some sockets leave + ;; unclosed, causing Pytest to raise warning on teardown. + "-W" "ignore::ResourceWarning" + "-W" "ignore::pytest.PytestUnraisableExceptionWarning" ;; For some reason tests stacked in infinity re-invocation loop: ;; AssertionError where is_alive = ;;