From 0799e09910bf504cc18ac404d346c72bc955ad31 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Fri, 19 Sep 2008 12:38:55 -0700
Subject: [PATCH] test_cli: disable generate-keypair test on OS-X, pycryptopp
 still has a bug

---
 src/allmydata/test/test_cli.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py
index f6f20f73..21e1ea7d 100644
--- a/src/allmydata/test/test_cli.py
+++ b/src/allmydata/test/test_cli.py
@@ -515,6 +515,11 @@ class Admin(unittest.TestCase):
         return d
 
     def test_generate_keypair(self):
+        import sys
+        if sys.platform == "darwin":
+            # pycryptopp-0.5.7's ECDSA is broken on OS-X, it raises a C++
+            # exception, which halts the whole process. So skip this test.
+            raise unittest.SkipTest("pycryptopp-0.5.7's ECDSA raises a C++ exception on OS-X")
         d = self.do_cli("admin", "generate-keypair")
         def _done( (stdout, stderr) ):
             lines = stdout.split("\n")
-- 
2.45.2