From d104f4d21f735693ea93fe65ea4b4e1aa1779343 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Fri, 15 Apr 2022 18:25:03 +0200 Subject: gh-69093: Don't allow instantiation of sqlite3.Blob objects (GH-91570) --- Lib/test/test_sqlite3/test_dbapi.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_sqlite3/test_dbapi.py') diff --git a/Lib/test/test_sqlite3/test_dbapi.py b/Lib/test/test_sqlite3/test_dbapi.py index 6613d5f0ea..b010813fff 100644 --- a/Lib/test/test_sqlite3/test_dbapi.py +++ b/Lib/test/test_sqlite3/test_dbapi.py @@ -356,6 +356,7 @@ class ModuleTests(unittest.TestCase): def test_disallow_instantiation(self): cx = sqlite.connect(":memory:") check_disallow_instantiation(self, type(cx("select 1"))) + check_disallow_instantiation(self, sqlite.Blob) def test_complete_statement(self): self.assertFalse(sqlite.complete_statement("select t")) -- cgit v1.2.1