diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-03 18:02:58 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-03 18:02:58 -0700 |
commit | bb6e9cfe9ff25f3a018b23785f71302911eab435 (patch) | |
tree | 97ab1702d7dae6d2429788fbf9ada3f40c9d7926 /tests/test_ipalib | |
parent | 6b6e6b1cab7a633faf16631a565ecb6988dadb48 (diff) | |
download | freeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.tar.gz freeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.tar.xz freeipa-bb6e9cfe9ff25f3a018b23785f71302911eab435.zip |
Plugin.call() now uses errors2 version of SubprocessError
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r-- | tests/test_ipalib/test_plugable.py | 3 |
1 files changed, 1 insertions, 2 deletions
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',) |