We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086565a commit d7c99d8Copy full SHA for d7c99d8
1 file changed
Lib/sqlite3/test/dbapi.py
@@ -25,6 +25,7 @@
25
import sqlite3 as sqlite
26
import sys
27
28
+from test.support import check_disallow_instantiation
29
from test.support.os_helper import TESTFN, unlink
30
31
@@ -94,8 +95,7 @@ def test_shared_cache_deprecated(self):
94
95
96
def test_disallow_instantiation(self):
97
cx = sqlite.connect(":memory:")
- tp = type(cx("select 1"))
98
- self.assertRaises(TypeError, tp)
+ check_disallow_instantiation(self, type(cx("select 1")))
99
100
101
class ConnectionTests(unittest.TestCase):
0 commit comments