Python < 3.2 doesn’t have assertIsInstance

This commit is contained in:
Frazer McLean 2017-04-16 03:44:21 +02:00
parent 38cd720369
commit 9e5621698f

View File

@ -387,7 +387,7 @@ class LargeObjectTests(LargeObjectTestCase):
pass
lo = self.conn.lobject(lobject_factory=lobject_subclass)
self.assertIsInstance(lo, lobject_subclass)
self.assert_(isinstance(lo, lobject_subclass))
decorate_all_tests(LargeObjectTests, skip_if_no_lo, skip_lo_if_green)