BIND 10 trac1429, updated. 40cfd32c280020af33a28c1501380a17ce604175 [1429] assertIsInstance not in python 3.1

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Dec 2 20:04:51 UTC 2011


The branch, trac1429 has been updated
       via  40cfd32c280020af33a28c1501380a17ce604175 (commit)
      from  20a6000a9f69476797477ca7af5fd83b8e236909 (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 40cfd32c280020af33a28c1501380a17ce604175
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Fri Dec 2 21:04:26 2011 +0100

    [1429] assertIsInstance not in python 3.1

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

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

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index bc2ab7a..ad82c36 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -226,7 +226,7 @@ class TestCacheCommands(unittest.TestCase):
             'path': '/socket/path'
         }, answer)
         addr = self.__get_token_called[1]
-        self.assertIsInstance(addr, IPAddr)
+        self.assertTrue(isinstance(addr, IPAddr))
         self.assertEqual("0.0.0.0", str(addr))
         self.assertEqual(("UDP", addr, 53, "ANY", "app"),
                          self.__get_token_called)
@@ -247,7 +247,7 @@ class TestCacheCommands(unittest.TestCase):
             if code == 1:
                 # This should be an error message. The exact formatting
                 # is unknown, but we check it is string at last
-                self.assertIsInstance(ranswer, str)
+                self.assertTrue(isinstance(ranswer, str))
         def mod_args(name, value):
             """
             Override a parameter in the args.
@@ -334,7 +334,8 @@ class TestBoB(unittest.TestCase):
         class Creator: pass
         creator = Creator()
         bob.insert_creator(creator)
-        self.assertIsInstance(bob._socket_cache, isc.bind10.socket_cache.Cache)
+        self.assertTrue(isinstance(bob._socket_cache,
+                        isc.bind10.socket_cache.Cache))
         self.assertEqual(creator, bob._socket_cache._creator)
         self.assertRaises(ValueError, bob.insert_creator, creator)
 




More information about the bind10-changes mailing list