diff options
| author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-01-06 01:36:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-06 02:36:04 +0200 |
| commit | ddb5e11683c8db9d2095f2f9406701443c4dc9b3 (patch) | |
| tree | 1f6aade790390220158f852c9e78d9e58faa27d8 /Lib/sqlite3/test/dbapi.py | |
| parent | f9949f82e17c88609adb53eff3a7d5cd63a645bd (diff) | |
| download | cpython-git-ddb5e11683c8db9d2095f2f9406701443c4dc9b3.tar.gz | |
bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)
Diffstat (limited to 'Lib/sqlite3/test/dbapi.py')
| -rw-r--r-- | Lib/sqlite3/test/dbapi.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py index 2b85ef99f0..3131c1ec2a 100644 --- a/Lib/sqlite3/test/dbapi.py +++ b/Lib/sqlite3/test/dbapi.py @@ -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): |
