mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-01 10:46:42 +00:00
All you have to do to drop it is not save it in the first place
Also it would have been dropped as soon as this function returned, anyway.
This commit is contained in:
parent
d5bff458b6
commit
1f229ce9f6
@ -526,11 +526,10 @@ class CLI(CLITestMixin, unittest.TestCase):
|
||||
|
||||
def fake_react(f, *args):
|
||||
reactor = Mock()
|
||||
d = f(reactor)
|
||||
# normally this Deferred would be errbacked with SystemExit, but
|
||||
# since we mocked out sys.exit, it will be fired with None. So
|
||||
# it's safe to drop it on the floor.
|
||||
del d
|
||||
f(reactor, *args)
|
||||
|
||||
patcher = MonkeyPatcher((runner, 'parse_or_exit_with_explanation',
|
||||
call_parse_or_exit),
|
||||
|
Loading…
Reference in New Issue
Block a user