[3.13] gh-142787: Handle empty sqlite3 blob slices (GH-142824) by miss-islington · Pull Request #145298 · python/cpython
def test_blob_get_empty_slice_oob_indices(self): self.cx.execute("insert into test(b) values (?)", (b"abc",)) with self.cx.blobopen("test", "b", 2) as blob: self.assertEqual(blob[5:-5], b"")
def test_blob_get_slice_negative_index(self): self.assertEqual(self.blob[5:-5], self.data[5:-5])