summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2022-04-15 13:29:57 (GMT)
committerGitHub <noreply@github.com>2022-04-15 13:29:57 (GMT)
commitb7f83bdd0e16f82288dc3557b7e715bb5c7d96d0 (patch)
tree16a451b593d21ee1a8550f944f6d585748a9cb42 /Lib
parent6217864fe5f6855f59d608733ce83fd4466e1b8c (diff)
downloadcpython-b7f83bdd0e16f82288dc3557b7e715bb5c7d96d0.zip
cpython-b7f83bdd0e16f82288dc3557b7e715bb5c7d96d0.tar.gz
cpython-b7f83bdd0e16f82288dc3557b7e715bb5c7d96d0.tar.bz2
gh-69093: Expose sqlite3.Blob as a class (GH-91550)
I noticed this was missing while writing typeshed stubs. It's useful to expose it for use in annotations and for exploration.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_sqlite3/test_dbapi.py3
1 files changed, 3 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)