summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_sqlite3/test_dbapi.py3
-rw-r--r--Modules/_sqlite/module.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py
index faaa371..6613d5f 100644
--- a/Lib/test/test_sqlite3/test_dbapi.py
+++ b/Lib/test/test_sqlite3/test_dbapi.py
@@ -1055,6 +1055,9 @@ class BlobTests(unittest.TestCase):
self.blob.close()
self.cx.close()
+ def test_blob_is_a_blob(self):
+ self.assertIsInstance(self.blob, sqlite.Blob)
+
def test_blob_seek_and_tell(self):
self.blob.seek(10)
self.assertEqual(self.blob.tell(), 10)
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index d355c2b..fbc57c7 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -697,6 +697,7 @@ module_exec(PyObject *module)
}
pysqlite_state *state = pysqlite_get_state(module);
+ ADD_TYPE(module, state->BlobType);
ADD_TYPE(module, state->ConnectionType);
ADD_TYPE(module, state->CursorType);
ADD_TYPE(module, state->PrepareProtocolType);