Parcourir la source

Be less specific when comparing the error message. Fixes a test failure on Python 2.3.

Mike Naberezny il y a 15 ans
Parent
commit
21e555bc43
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/supervisor/tests/test_supervisorctl.py

+ 1 - 1
src/supervisor/tests/test_supervisorctl.py

@@ -821,7 +821,7 @@ class TestDefaultControllerPlugin(unittest.TestCase):
                          'http://localhost:92491/mainlogtail')
         self.assertEqual(error[0],
                          'http://localhost:92491/mainlogtail')
-        for msg in ('Cannot connect', 'socket.error', '32', 'Broken pipe'):
+        for msg in ('Cannot connect', 'socket.error'):
             self.assertTrue(msg in error[1])
 
     def test_maintail_nobytes(self):