aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/sqlite3/test/dbapi.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-01-09 12:25:55 +0100
committerGitHub <noreply@github.com>2021-01-09 13:25:55 +0200
commitd16f6176abdecbb7ab231dc78beccfaa095beff6 (patch)
treedca0f0aac66d1df3377b48d47b7f43e1470a4517 /Lib/sqlite3/test/dbapi.py
parent0e2a0f72cc9af0899eacb5604e44a563c0b06110 (diff)
downloadcpython-d16f6176abdecbb7ab231dc78beccfaa095beff6.tar.gz
cpython-d16f6176abdecbb7ab231dc78beccfaa095beff6.zip
bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170)
Diffstat (limited to 'Lib/sqlite3/test/dbapi.py')
-rw-r--r--Lib/sqlite3/test/dbapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py
index 68a30622395..39c9bf5b611 100644
--- a/Lib/sqlite3/test/dbapi.py
+++ b/Lib/sqlite3/test/dbapi.py
@@ -23,6 +23,7 @@
import threading
import unittest
import sqlite3 as sqlite
+import sys
from test.support.os_helper import TESTFN, unlink
@@ -82,6 +83,9 @@ class ModuleTests(unittest.TestCase):
sqlite.DatabaseError),
"NotSupportedError is not a subclass of DatabaseError")
+ # sqlite3_enable_shared_cache() is deprecated on macOS and calling it may raise
+ # OperationalError on some buildbots.
+ @unittest.skipIf(sys.platform == "darwin", "shared cache is deprecated on macOS")
def test_shared_cache_deprecated(self):
for enable in (True, False):
with self.assertWarns(DeprecationWarning) as cm: