mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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:
parent
8803cb9eb9
commit
7a36e8e218
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue