From 185a76765d19366897ce0bc22ed53a4e729173a3 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Fri, 27 Jul 2018 13:46:18 +1000 Subject: [PATCH] Remove testing of creating a directory The sampler no longer, by default, creates an ourput directory --- test/sampler_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sampler_tests.py b/test/sampler_tests.py index a9b7073ed..0bdb37fc4 100644 --- a/test/sampler_tests.py +++ b/test/sampler_tests.py @@ -35,7 +35,7 @@ class TestSampler(unittest.TestCase): outdir=test_directory, use_ratio=False) def tearDown(self): - os.rmdir(self.sampler.outdir) + #os.rmdir(self.sampler.outdir) del self.sampler def test_search_parameter_keys(self): @@ -88,8 +88,8 @@ class TestSampler(unittest.TestCase): print(expected_result.__dict__) self.assertDictEqual(self.sampler.result.__dict__, expected_result.__dict__) - def test_make_outdir_if_no_outdir_exists(self): - self.assertTrue(os.path.isdir(self.sampler.outdir)) + #def test_make_outdir_if_no_outdir_exists(self): + # self.assertTrue(os.path.isdir(self.sampler.outdir)) def test_prior_transform_transforms_search_parameter_keys(self): self.sampler.prior_transform([0]) -- GitLab