mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)
This commit is contained in:
parent
f9949f82e1
commit
ddb5e11683
4 changed files with 32 additions and 0 deletions
|
@ -83,6 +83,13 @@ class ModuleTests(unittest.TestCase):
|
|||
sqlite.DatabaseError),
|
||||
"NotSupportedError is not a subclass of DatabaseError")
|
||||
|
||||
def CheckSharedCacheDeprecated(self):
|
||||
for enable in (True, False):
|
||||
with self.assertWarns(DeprecationWarning) as cm:
|
||||
sqlite.enable_shared_cache(enable)
|
||||
self.assertIn("dbapi.py", cm.filename)
|
||||
|
||||
|
||||
class ConnectionTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue