gnu: python-eventlet: Manage broken tests with nosetests.

* gnu/packages/python-xyz.scm (python-eventlet):
  [arguments] Manage broken tests with nosetests.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2022-12-20 16:09:54 +01:00 committed by Ludovic Courtès
parent 8803cb9eb9
commit 7a36e8e218
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2876,15 +2876,14 @@ (define-public python-eventlet
;; getprotobyname is called. Thankfully there is an environment
;; variable to disable the greendns import, so use it:
(setenv "EVENTLET_NO_GREENDNS" "yes")))
(add-after 'unpack 'delete-broken-tests
(lambda _
(delete-file "tests/greendns_test.py")
(delete-file "tests/socket_test.py")))
;; See https://github.com/eventlet/eventlet/issues/562#issuecomment-714183009
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests" "-v" "tests/")))))))
(invoke
"nosetests"
"-v" "tests/"
"-I" "greendns_test.py"
"-I" "socket_test.py")))))))
(home-page "https://eventlet.net")
(synopsis "Concurrent networking library for Python")
(description