Fix compatibility with python2.6, which does not have assertIsInstance.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 18 Jan 2014 19:28:13 +0000 (19:28 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 18 Jan 2014 19:28:13 +0000 (19:28 +0000)
fastimport/tests/test_parser.py

index c50c7d47be889b683ad3fe4d7f3567a480f767bc..865baaa8f9cbeed1de30e5040814d05cd3bd673f 100644 (file)
@@ -318,7 +318,7 @@ class TestTagParsing(unittest.TestCase):
             "create v1.0"))
         cmds = list(p.iter_commands())
         self.assertEquals(1, len(cmds))
-        self.assertIsInstance(cmds[0], commands.TagCommand)
+        self.assertTrue(isinstance(cmds[0], commands.TagCommand))
         self.assertEquals(cmds[0].tagger,
             ('Joe Wong', 'joe@example.com', 1234567890.0, -21600))
 
@@ -340,5 +340,5 @@ class TestTagParsing(unittest.TestCase):
             "create v1.0"), strict=False)
         cmds = list(p.iter_commands())
         self.assertEquals(1, len(cmds))
-        self.assertIsInstance(cmds[0], commands.TagCommand)
+        self.assertTrue(isinstance(cmds[0], commands.TagCommand))
         self.assertEquals(cmds[0].tagger[:2], ('Joe Wong', None))