guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: python-stem: Fix tests wth python 3.9.


From: guix-commits
Subject: 02/03: gnu: python-stem: Fix tests wth python 3.9.
Date: Sat, 11 Sep 2021 09:24:58 -0400 (EDT)

glv pushed a commit to branch core-updates-frozen
in repository guix.

commit 7c829150ed2197359982e02f2d1dd25a2c868013
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Sat Sep 11 14:39:41 2021 +0200

    gnu: python-stem: Fix tests wth python 3.9.
    
    * gnu/packages/python-xyz.scm (python-stem)[arguments]: Add 'fix-tests' 
phase.
---
 gnu/packages/python-xyz.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index aa3f7d2..506df43 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15641,6 +15641,12 @@ documentation to argparse configuration.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-tests
+           ;; See https://github.com/torproject/stem/issues/56
+           (lambda _
+             (substitute* "run_tests.py"
+               (("test\\.task\\.MOCK_VERSION,")
+                ""))))
          (replace 'check
            (lambda _
              (invoke "./run_tests.py" "--unit")



reply via email to

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