test_cli: oops, fix tests after recent stdout/stderr cleanup

This commit is contained in:
Brian Warner 2008-08-12 14:46:34 -07:00
parent acb0297806
commit 022fcf3db8
1 changed files with 4 additions and 4 deletions

View File

@ -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):