summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-09-28 13:42:17 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-10-02 21:47:28 -0400
commit3dc26bcd78ab1548472de633a31ded0a7f744ad2 (patch)
tree5ba70bf4ce4c5918c53156efa0f8d8e9057acbea
parentec2ecf790fc1cbd05574d12965f95dc1f7b39e28 (diff)
downloadguix-3dc26bcd78ab1548472de633a31ded0a7f744ad2.tar.gz
gnu: python-gssapi: Skip failing tests.
Fixes <https://issues.guix.gnu.org/43402>.

* gnu/packages/python-xyz.scm (python-gssapi)[phases]{disable-failing-tests}:
Add phase.
-rw-r--r--gnu/packages/python-xyz.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b67224d1b1..c88667e200 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20424,6 +20424,22 @@ tests.")
         (base32
          "02i5s7998dg5kcr4m0xwamd8vjqk1816xbzldyp68l91f6bynwcr"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Work around
+         ;; https://github.com/pythongssapi/python-gssapi/issues/220.
+         (add-before 'check 'disable-failing-tests
+           (lambda _
+             (let ((reason "Disabled failing test (see: \
+https://github.com/pythongssapi/python-gssapi/issues/220)."))
+               (substitute* "gssapi/tests/test_high_level.py"
+                 ((".*def test_add_with_impersonate.*" all)
+                  (string-append all "        self.skipTest('" reason "')\n")))
+               (substitute* "gssapi/tests/test_raw.py"
+                 ((".*def test_.*impersonate_name.*" all)
+                  (string-append all "        self.skipTest('" reason "')\n")))
+               #t))))))
     (propagated-inputs
      `(("python-decorator" ,python-decorator)
        ("python-six" ,python-six)))