Skip to content

Commit d7c99d8

Browse files
author
Erlend E. Aasland
committed
Include sqlite3 test backported in GH-26567
1 parent 086565a commit d7c99d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/sqlite3/test/dbapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import sqlite3 as sqlite
2626
import sys
2727

28+
from test.support import check_disallow_instantiation
2829
from test.support.os_helper import TESTFN, unlink
2930

3031

@@ -94,8 +95,7 @@ def test_shared_cache_deprecated(self):
9495

9596
def test_disallow_instantiation(self):
9697
cx = sqlite.connect(":memory:")
97-
tp = type(cx("select 1"))
98-
self.assertRaises(TypeError, tp)
98+
check_disallow_instantiation(self, type(cx("select 1")))
9999

100100

101101
class ConnectionTests(unittest.TestCase):

0 commit comments

Comments
 (0)