From 022fcf3db8c677d02c0c465ab6edfd8a0814b165 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 12 Aug 2008 14:46:34 -0700 Subject: [PATCH] test_cli: oops, fix tests after recent stdout/stderr cleanup --- src/allmydata/test/test_cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index da358af7..464a597a 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -66,12 +66,12 @@ class CLI(unittest.TestCase): self.failUnlessEqual(o.where, "subdir") def _dump_cap(self, *args): - out,err = StringIO(), StringIO() config = debug.DumpCapOptions() + config.stdout,config.stderr = StringIO(), StringIO() config.parseOptions(args) - debug.dump_cap(config, out, err) - self.failIf(err.getvalue()) - output = out.getvalue() + debug.dump_cap(config) + self.failIf(config.stderr.getvalue()) + output = config.stdout.getvalue() return output def test_dump_cap_chk(self): -- 2.45.2