guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/11: gnu: python-eventlet: Manage broken tests with nosetests.


From: guix-commits
Subject: 09/11: gnu: python-eventlet: Manage broken tests with nosetests.
Date: Thu, 19 Jan 2023 11:57:17 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 7a36e8e21809d05fdd011a0ce2ce7a83127c6679
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Tue Dec 20 16:09:54 2022 +0100

    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>
---
 gnu/packages/python-xyz.scm | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 86ccc00bf7..acc6c051e9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2876,15 +2876,14 @@ standard.")
              ;; 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]