From a9203de709050c286eb96976db0e8ddd26fcaa54 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Thu, 18 Feb 2016 17:24:00 -0800 Subject: [PATCH] switched to ValueError (more specific Exception) --- tests/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index cca62bd..482f2f7 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -27,10 +27,10 @@ class Test_execute(TestToolsFilesystem): def test_execute_exception_when_logdir_none(self): exe = which ('true') - with self.assertRaises(Exception) as ecm: + with self.assertRaises(ValueError) as ecm: execute([exe], logdir=None) e = ecm.exception - self.assertTrue('Missing' in e.message) + self.assertTrue('logdir must be a directory' in e.message) def test_execute_exception_when_logdir_enoent(self): exe = which ('true')