test_cli: oops, fix tests after recent stdout/stderr cleanup
This commit is contained in:
parent
acb0297806
commit
022fcf3db8
|
@ -66,12 +66,12 @@ class CLI(unittest.TestCase):
|
||||||
self.failUnlessEqual(o.where, "subdir")
|
self.failUnlessEqual(o.where, "subdir")
|
||||||
|
|
||||||
def _dump_cap(self, *args):
|
def _dump_cap(self, *args):
|
||||||
out,err = StringIO(), StringIO()
|
|
||||||
config = debug.DumpCapOptions()
|
config = debug.DumpCapOptions()
|
||||||
|
config.stdout,config.stderr = StringIO(), StringIO()
|
||||||
config.parseOptions(args)
|
config.parseOptions(args)
|
||||||
debug.dump_cap(config, out, err)
|
debug.dump_cap(config)
|
||||||
self.failIf(err.getvalue())
|
self.failIf(config.stderr.getvalue())
|
||||||
output = out.getvalue()
|
output = config.stdout.getvalue()
|
||||||
return output
|
return output
|
||||||
|
|
||||||
def test_dump_cap_chk(self):
|
def test_dump_cap_chk(self):
|
||||||
|
|
Loading…
Reference in New Issue