mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 21:17:54 +00:00
Faking sys.stdout doesn't go well since we lookup encoding attribute.
This commit is contained in:
parent
eddd9550f0
commit
8be4acd7ec
@ -130,9 +130,10 @@ class Integration(GridTestMixin, CLITestMixin, unittest.TestCase):
|
||||
d.addCallback(_check)
|
||||
return d
|
||||
|
||||
@mock.patch('sys.stdout')
|
||||
def test_help(self, fake):
|
||||
return self.do_cli('status', '--help')
|
||||
@defer.inlineCallbacks
|
||||
def test_help(self):
|
||||
rc, _, _ = yield self.do_cli('status', '--help')
|
||||
self.assertEqual(rc, 0)
|
||||
|
||||
|
||||
class CommandStatus(unittest.TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user