File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ def test_shared_cache_deprecated(self):
356
356
def test_disallow_instantiation (self ):
357
357
cx = sqlite .connect (":memory:" )
358
358
check_disallow_instantiation (self , type (cx ("select 1" )))
359
+ check_disallow_instantiation (self , sqlite .Blob )
359
360
360
361
def test_complete_statement (self ):
361
362
self .assertFalse (sqlite .complete_statement ("select t" ))
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ static PyType_Spec blob_spec = {
334
334
.name = MODULE_NAME ".Blob" ,
335
335
.basicsize = sizeof (pysqlite_Blob ),
336
336
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
337
- Py_TPFLAGS_IMMUTABLETYPE ),
337
+ Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION ),
338
338
.slots = blob_slots ,
339
339
};
340
340
You can’t perform that action at this time.
0 commit comments