10000 [3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) by erlend-aasland · Pull Request #26816 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) #26816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test.support.check_disallow_instantiation is not present in 3.10
  • Loading branch information
Erlend E. Aasland committed Jun 20, 2021
commit 134d4302fb33c3e22f4a12ec6de44952a23328b4
4 changes: 2 additions & 2 deletions Lib/sqlite3/test/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import sqlite3 as sqlite
import sys

from test.support import check_disallow_instantiation
from test.support.os_helper import TESTFN, unlink


Expand Down Expand Up @@ -95,7 +94,8 @@ def test_shared_cache_deprecated(self):

def test_disallow_instantiation(self):
cx = sqlite.connect(":memory:")
check_disallow_instantiation(self, type(cx("select 1")))
tp = type(cx("select 1"))
self.assertRaises(TypeError, tp)


class ConnectionTests(unittest.TestCase):
Expand Down
0