[Supervisor-checkins] r861 - supervisor/trunk/src/supervisor/tests
Mike Naberezny
mike at maintainable.com
Sat May 23 12:19:27 EDT 2009
Author: Mike Naberezny <mike at maintainable.com>
Date: Sat May 23 12:19:26 2009
New Revision: 861
Log:
Make testing the message less brittle.
Modified:
supervisor/trunk/src/supervisor/tests/test_supervisorctl.py
Modified: supervisor/trunk/src/supervisor/tests/test_supervisorctl.py
==============================================================================
--- supervisor/trunk/src/supervisor/tests/test_supervisorctl.py (original)
+++ supervisor/trunk/src/supervisor/tests/test_supervisorctl.py Sat May 23 12:19:26 2009
@@ -762,8 +762,8 @@
'http://localhost:92491/mainlogtail')
self.assertEqual(error[0],
'http://localhost:92491/mainlogtail')
- self.assertEqual(error[1],
- "Cannot connect, error: socket.error ((32, 'Broken pipe'))")
+ for msg in ('Cannot connect', 'socket.error', '32', 'Broken pipe'):
+ self.assertTrue(msg in error[1])
def test_maintail_nobytes(self):
plugin = self._makeOne()
More information about the Supervisor-checkins
mailing list