From bb6e9cfe9ff25f3a018b23785f71302911eab435 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Sat, 3 Jan 2009 18:02:58 -0700 Subject: Plugin.call() now uses errors2 version of SubprocessError --- tests/test_ipalib/test_plugable.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py index dbf0cc3ff..c6c84fa16 100644 --- a/tests/test_ipalib/test_plugable.py +++ b/tests/test_ipalib/test_plugable.py @@ -372,8 +372,7 @@ class test_Plugin(ClassChecker): """ o = self.cls() o.call('/bin/true') is None - e = raises(errors.SubprocessError, o.call, '/bin/false') - assert str(e) == 'return code %d from %r' % (1, ('/bin/false',)) + e = raises(errors2.SubprocessError, o.call, '/bin/false') assert e.returncode == 1 assert e.argv == ('/bin/false',) -- cgit