summaryrefslogtreecommitdiff
path: root/fastimport/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-01-18 19:28:13 +0000
committerJelmer Vernooij <jelmer@samba.org>2014-01-18 19:28:13 +0000
commit57f8d56361b5a2442da31f8f82bb7f8d351b3e0b (patch)
treece5ede20c5155652d39ecc8c63a07dad3983c302 /fastimport/tests
parentf03cb3e5719e192b60ef0f0f4db9f285bcbdaab8 (diff)
downloadpython-fastimport-git-57f8d56361b5a2442da31f8f82bb7f8d351b3e0b.tar.gz
Fix compatibility with python2.6, which does not have assertIsInstance.
Diffstat (limited to 'fastimport/tests')
-rw-r--r--fastimport/tests/test_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fastimport/tests/test_parser.py b/fastimport/tests/test_parser.py
index c50c7d4..865baaa 100644
--- a/fastimport/tests/test_parser.py
+++ b/fastimport/tests/test_parser.py
@@ -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))