@@ -364,11 +364,11 @@ def main(args=None, test=False):
profile('go(options)', globals(), locals(), sort_order, callers)
else:
go(options)
- if test or (options.mood < SupervisorStates.RESTARTING):
- break
options.close_httpservers()
options.close_logger()
first = False
+ if test or (options.mood < SupervisorStates.RESTARTING):
+ break
def go(options):
d = Supervisor(options)
@@ -28,6 +28,7 @@ class EntryPointTests(unittest.TestCase):
'donothing.conf')
import StringIO
new_stdout = StringIO.StringIO()
+ new_stdout.fileno = lambda: 1
old_stdout = sys.stdout
try:
tempdir = tempfile.mkdtemp()
@@ -50,6 +51,7 @@ class EntryPointTests(unittest.TestCase):