summaryrefslogtreecommitdiff
path: root/tests/test_lobject.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_lobject.py')
-rwxr-xr-xtests/test_lobject.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_lobject.py b/tests/test_lobject.py
index 7f600e3..3e99e86 100755
--- a/tests/test_lobject.py
+++ b/tests/test_lobject.py
@@ -84,7 +84,7 @@ class LargeObjectTests(LargeObjectMixin, unittest.TestCase):
def test_create(self):
lo = self.conn.lobject()
self.assertNotEqual(lo, None)
- self.assertEqual(lo.mode, "w")
+ self.assertEqual(lo.mode[0], "w")
def test_open_non_existent(self):
# By creating then removing a large object, we get an Oid that
@@ -98,12 +98,12 @@ class LargeObjectTests(LargeObjectMixin, unittest.TestCase):
lo2 = self.conn.lobject(lo.oid)
self.assertNotEqual(lo2, None)
self.assertEqual(lo2.oid, lo.oid)
- self.assertEqual(lo2.mode, "r")
+ self.assertEqual(lo2.mode[0], "r")
def test_open_for_write(self):
lo = self.conn.lobject()
lo2 = self.conn.lobject(lo.oid, "w")
- self.assertEqual(lo2.mode, "w")
+ self.assertEqual(lo2.mode[0], "w")
lo2.write(b("some data"))
def test_open_mode_n(self):