mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Plugin.call() now uses errors2 version of SubprocessError
This commit is contained in:
@@ -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',)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user