Explorar o código

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

Mike Naberezny %!s(int64=15) %!d(string=hai) anos
pai
achega
21e555bc43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):