BIND 10 trac2922, updated. 9bbd16649e750e9a4c7ce5fec0265f91b10cc4fb [2922] Clarify tests

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 12 06:57:24 UTC 2013


The branch, trac2922 has been updated
       via  9bbd16649e750e9a4c7ce5fec0265f91b10cc4fb (commit)
      from  9d30cc97c91754a94f15ae288220401fb11cfc06 (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 9bbd16649e750e9a4c7ce5fec0265f91b10cc4fb
Author: Michal 'vorner' Vaner <vorner at vorner.cz>
Date:   Wed Jun 12 08:55:57 2013 +0200

    [2922] Clarify tests
    
    Rename local variable so it doesn't shadow the name of module. There's
    no functional change, just making it less confusing.

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

Summary of changes:
 src/bin/bind10/tests/init_test.py.in |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/init_test.py.in b/src/bin/bind10/tests/init_test.py.in
index 4b7b6e3..913e642 100644
--- a/src/bin/bind10/tests/init_test.py.in
+++ b/src/bin/bind10/tests/init_test.py.in
@@ -17,7 +17,7 @@
 # we want to be explicit about what we do, like when hijacking a library
 # call used by the b10-init.
 from init import Init, ProcessInfo, parse_args, dump_pid, unlink_pid_file, \
-    _BASETIME, ProcessStartError
+    _BASETIME
 import init
 
 # XXX: environment tests are currently disabled, due to the preprocessor
@@ -1815,11 +1815,11 @@ class TestInitComponents(unittest.TestCase):
                 self.called += 1
                 raise isc.config.RPCRecipientMissing("Not yet")
 
-        init = MockInitSimple()
-        init.wait_time = 1
-        init.ccs = RpcSession()
-        self.assertRaises(ProcessStartError, init.wait_msgq)
-        self.assertEqual(10, init.ccs.called)
+        b10init = MockInitSimple()
+        b10init.wait_time = 1
+        b10init.ccs = RpcSession()
+        self.assertRaises(init.ProcessStartError, b10init.wait_msgq)
+        self.assertEqual(10, b10init.ccs.called)
 
     def test_start_cfgmgr(self):
         '''Test that b10-cfgmgr is started.'''



More information about the bind10-changes mailing list