Skip to content

Commit

Permalink
Capture stderr messages when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Jun 20, 2013
1 parent 671308b commit 5775749
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions supervisor/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def test_unreadable_config_file(self):
self.assertFalse(os.path.exists(fname))

instance = self._makeOne()
instance.stderr = StringIO()

class DummyException(Exception):
def __init__(self, exitcode):
self.exitcode = exitcode
Expand Down Expand Up @@ -591,6 +593,8 @@ def test_unreadable_config_file(self):
self.assertFalse(os.path.exists(fname))

instance = self._makeOne()
instance.stderr = StringIO()

class DummyException(Exception):
def __init__(self, exitcode):
self.exitcode = exitcode
Expand Down

0 comments on commit 5775749

Please sign in to comment.