Просмотр исходного кода

Resave with excess whitespace removed

--HG--
extra : source : 4eb7b1bd8d707cc2643fdd35f4e0f794c142fc72
Jason R. Coombs 12 лет назад
Родитель
Сommit
8394fed416
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      supervisor/tests/test_dispatchers.py

+ 10 - 10
supervisor/tests/test_dispatchers.py

@@ -34,7 +34,7 @@ class POutputDispatcherTests(unittest.TestCase):
         process = DummyProcess(config)
         dispatcher = self._makeOne(process)
         self.assertEqual(dispatcher.writable(), False)
-        
+
     def test_readable_open(self):
         options = DummyOptions()
         config = DummyPConfig(options, 'process1', '/bin/process1')
@@ -67,7 +67,7 @@ class POutputDispatcherTests(unittest.TestCase):
         dispatcher = self._makeOne(process)
         self.assertEqual(dispatcher.handle_read_event(), None)
         self.assertEqual(dispatcher.output_buffer, 'abc')
-        
+
     def test_handle_error(self):
         options = DummyOptions()
         config = DummyPConfig(options, 'test', '/test')
@@ -160,7 +160,7 @@ class POutputDispatcherTests(unittest.TestCase):
         self.assertEqual(len(L), 1)
         event = L[0]
         self.assertEqual(event.process, process)
-        self.assertEqual(event.data, 'hello from stdout') 
+        self.assertEqual(event.data, 'hello from stdout')
 
     def test_record_output_does_not_emit_stdout_event_when_disabled(self):
         options = DummyOptions()
@@ -197,7 +197,7 @@ class POutputDispatcherTests(unittest.TestCase):
         self.assertEqual(len(L), 1)
         event = L[0]
         self.assertEqual(event.process, process)
-        self.assertEqual(event.data, 'hello from stderr') 
+        self.assertEqual(event.data, 'hello from stderr')
 
     def test_record_output_does_not_emit_stderr_event_when_disabled(self):
         options = DummyOptions()
@@ -291,7 +291,7 @@ class POutputDispatcherTests(unittest.TestCase):
                 os.remove(logfile)
             except (OSError, IOError):
                 pass
-        
+
     def test_stdout_capturemode_multiple_buffers(self):
         from supervisor.events import ProcessCommunicationEvent
         from supervisor.events import subscribe
@@ -448,8 +448,8 @@ class POutputDispatcherTests(unittest.TestCase):
         self.assertEqual(dispatcher.closed, True)
         dispatcher.close() # make sure we don't error if we try to close twice
         self.assertEqual(dispatcher.closed, True)
-        
-                        
+
+
 class PInputDispatcherTests(unittest.TestCase):
     def _getTargetClass(self):
         from supervisor.dispatchers import PInputDispatcher
@@ -550,7 +550,7 @@ class PInputDispatcherTests(unittest.TestCase):
         process = DummyProcess(None)
         dispatcher = self._makeOne(process)
         self.assertRaises(NotImplementedError, dispatcher.handle_read_event)
-        
+
     def test_handle_error(self):
         options = DummyOptions()
         config = DummyPConfig(options, 'test', '/test')
@@ -609,7 +609,7 @@ class PEventListenerDispatcherTests(unittest.TestCase):
         process = DummyProcess(config)
         dispatcher = self._makeOne(process)
         self.assertEqual(dispatcher.writable(), False)
-        
+
     def test_readable_open(self):
         options = DummyOptions()
         config = DummyPConfig(options, 'process1', '/bin/process1')
@@ -1042,7 +1042,7 @@ class PEventListenerDispatcherTests(unittest.TestCase):
             drepr.find('<supervisor.tests.base.DummyProcess instance at'),
             -1)
         self.assertTrue(drepr.endswith('(stdout)>'), drepr)
-    
+
     def test_close(self):
         options = DummyOptions()
         config = DummyPConfig(options, 'process1', '/bin/process1')