BIND 10 trac2353, updated. 08a5a3d31220c660530bd69cccc8c27e1a789312 [2353] style fixes: folded long lines

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Nov 20 13:24:38 UTC 2012


The branch, trac2353 has been updated
       via  08a5a3d31220c660530bd69cccc8c27e1a789312 (commit)
      from  7f6ecb5e40c6acede82fb08a7d4c477030a48b99 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 08a5a3d31220c660530bd69cccc8c27e1a789312
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Nov 20 22:24:23 2012 +0900

    [2353] style fixes: folded long lines

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bind10/bind10_src.py.in        |    3 ++-
 src/bin/bind10/tests/bind10_test.py.in |   18 ++++++++++++------
 2 files changed, 14 insertions(+), 7 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in
index cfdbf90..78df946 100755
--- a/src/bin/bind10/bind10_src.py.in
+++ b/src/bin/bind10/bind10_src.py.in
@@ -480,7 +480,8 @@ class BoB:
             msg, env = self.cc_session.group_recvmsg()
         
         # wait_time is set to 0 only by unittests
-        if self.wait_time > 0 and not self.process_running(msg, "ConfigManager"):
+        if self.wait_time > 0 and not self.process_running(msg,
+                                                           "ConfigManager"):
             raise ProcessStartError("Configuration manager process has not started")
 
         return bind_cfgd
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 890551f..ed7f14a 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1465,7 +1465,8 @@ class TestBossComponents(unittest.TestCase):
 
         for i in range(0, 20):
             pid = pids[i]
-            component = MockComponent('test' + str(pid), pid, 'Test' + str(pid))
+            component = MockComponent('test' + str(pid), pid,
+                                      'Test' + str(pid))
             bob.components[pid] = component
 
         process_list = bob.get_processes()
@@ -1476,7 +1477,8 @@ class TestBossComponents(unittest.TestCase):
             pid = process[0]
             self.assertLessEqual(last_pid, pid)
             last_pid = pid
-            self.assertEqual([pid, 'test' + str(pid), 'Test' + str(pid)], process)
+            self.assertEqual([pid, 'test' + str(pid), 'Test' + str(pid)],
+                             process)
 
     def _test_reap_children_helper(self, runnable, is_running, failed):
         '''Construct a BoB instance, set various data in it according to
@@ -1527,8 +1529,10 @@ class TestBossComponents(unittest.TestCase):
         bob.reap_children()
         self.assertFalse(bob.components_to_restart)
 
-        # case where bob._get_process_exit_status() raises OSError with errno.ECHILD
-        bob._get_process_exit_status = bob._get_process_exit_status_raises_oserror_echild
+        # case where bob._get_process_exit_status() raises OSError with
+        # errno.ECHILD
+        bob._get_process_exit_status = \
+            bob._get_process_exit_status_raises_oserror_echild
         bob.components_to_restart = []
         # this should catch and handle the OSError
         bob.reap_children()
@@ -1536,13 +1540,15 @@ class TestBossComponents(unittest.TestCase):
 
         # case where bob._get_process_exit_status() raises OSError with
         # errno other than ECHILD
-        bob._get_process_exit_status = bob._get_process_exit_status_raises_oserror_other
+        bob._get_process_exit_status = \
+            bob._get_process_exit_status_raises_oserror_other
         with self.assertRaises(OSError):
             bob.reap_children()
 
         # case where bob._get_process_exit_status() raises something
         # other than OSError
-        bob._get_process_exit_status = bob._get_process_exit_status_raises_other
+        bob._get_process_exit_status = \
+            bob._get_process_exit_status_raises_other
         with self.assertRaises(Exception):
             bob.reap_children()
 



More information about the bind10-changes mailing list