This commit is contained in:
meejah 2023-06-19 17:55:36 -06:00
parent e765c8db6f
commit 357c9b003f

View File

@ -179,9 +179,9 @@ class DaemonizeStopTests(SyncTestCase):
We stop when stdin is closed.
"""
options = parse_options(["run", self.nodedir.path])
stdout = options.stdout = StringIO()
stderr = options.stderr = StringIO()
stdin = options.stdin = StringIO()
options.stdout = StringIO()
options.stderr = StringIO()
options.stdin = StringIO()
run_options = options.subOptions
with AlternateReactor(self.reactor):
@ -213,9 +213,9 @@ class DaemonizeStopTests(SyncTestCase):
stop the process
"""
options = parse_options(["run", "--allow-stdin-close", self.nodedir.path])
stdout = options.stdout = StringIO()
stderr = options.stderr = StringIO()
stdin = options.stdin = StringIO()
options.stdout = StringIO()
options.stderr = StringIO()
options.stdin = StringIO()
run_options = options.subOptions
with AlternateReactor(self.reactor):