Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions supervisor/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,8 @@ def test_make_process_with_group(self):
def test_make_dispatchers_stderr_not_redirected(self):
options = DummyOptions()
instance = self._makeOne(options)
instance.stdout_logfile = tempfile.mktemp(prefix='stdout_logfile_')
instance.stderr_logfile = tempfile.mktemp(prefix='stderr_logfile_')
instance.redirect_stderr = False
process1 = DummyProcess(instance)
dispatchers, pipes = instance.make_dispatchers(process1)
Expand All @@ -1653,6 +1655,7 @@ def test_make_dispatchers_stderr_not_redirected(self):
def test_make_dispatchers_stderr_redirected(self):
options = DummyOptions()
instance = self._makeOne(options)
instance.stdout_logfile = tempfile.mktemp(prefix='stdout_logfile_')
process1 = DummyProcess(instance)
dispatchers, pipes = instance.make_dispatchers(process1)
self.assertEqual(dispatchers[5].channel, 'stdout')
Expand Down Expand Up @@ -1697,6 +1700,8 @@ def test_make_process_with_group(self):
def test_make_dispatchers(self):
options = DummyOptions()
instance = self._makeOne(options)
instance.stdout_logfile = tempfile.mktemp(prefix='stdout_logfile_')
instance.stderr_logfile = tempfile.mktemp(prefix='stderr_logfile_')
instance.redirect_stderr = False
process1 = DummyProcess(instance)
dispatchers, pipes = instance.make_dispatchers(process1)
Expand Down