From c2d8acb8c8fa75f841ce9e16254b111856b5ffbe Mon Sep 17 00:00:00 2001
From: Colm Talbot <colm.talbot@ligo.org>
Date: Mon, 3 Sep 2018 13:03:21 +1000
Subject: [PATCH] remove problematic test

---
 optional_requirements.txt |  1 -
 test/sampler_tests.py     | 20 --------------------
 2 files changed, 21 deletions(-)

diff --git a/optional_requirements.txt b/optional_requirements.txt
index ea8201512..3e244261c 100644
--- a/optional_requirements.txt
+++ b/optional_requirements.txt
@@ -2,4 +2,3 @@ astropy
 lalsuite<=6.48.1.dev20180823
 gwpy
 theano
-cpnest
\ No newline at end of file
diff --git a/test/sampler_tests.py b/test/sampler_tests.py
index cd59e651a..39e032a60 100644
--- a/test/sampler_tests.py
+++ b/test/sampler_tests.py
@@ -127,25 +127,5 @@ class TestSampler(unittest.TestCase):
         self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
 
 
-class TestCPNest(unittest.TestCase):
-
-    def setUp(self):
-        def func(x, mu, sigma): return (mu-x) ** 2 / (2 * sigma**2)
-        self.likelihood = tupak.core.likelihood.GaussianLikelihood(
-            np.random.uniform(0, 1, 100), np.random.uniform(0, 1, 100),
-            func)
-
-    def tearDown(self):
-        del self.likelihood
-
-    def test_cannot_run_with_gaussian_prior(self):
-        priors = dict(mu=tupak.prior.Gaussian(0, 1),
-                      sigma=tupak.prior.Uniform(0, 1))
-        sampler = tupak.core.sampler.Cpnest(
-            likelihood=self.likelihood, priors=priors,
-            external_sampler='cpnest')
-        self.assertRaises(ValueError, lambda: sampler._run_external_sampler())
-
-
 if __name__ == '__main__':
     unittest.main()
-- 
GitLab