We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577803c commit c7a12b3Copy full SHA for c7a12b3
Lib/test/test_sqlite3/test_dbapi.py
@@ -1379,6 +1379,12 @@ def test_blob_get_slice(self):
1379
def test_blob_get_empty_slice(self):
1380
self.assertEqual(self.blob[5:5], b"")
1381
1382
+ def test_blob_get_empty_slice_oob_indices(self):
1383
+ self.cx.execute("delete from test")
1384
+ self.cx.execute("insert into test(b) values (?)", (b"abc",))
1385
+ with self.cx.blobopen("test", "b", 1) as blob:
1386
+ self.assertEqual(blob[5:-5], b"")
1387
+
1388
def test_blob_get_slice_negative_index(self):
1389
self.assertEqual(self.blob[5:-5], self.data[5:-5])
1390
0 commit comments