File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def enable_shared_cache(enable):
96
96
"the cache=shared query parameter."
97
97
)
98
98
warnings .warn (msg , DeprecationWarning , stacklevel = 2 )
99
- return _old_enable_shared_cache
99
+ return _old_enable_shared_cache ( enable )
100
100
101
101
# Clean up namespace
102
102
Original file line number Diff line number Diff line change 23
23
import threading
24
24
import unittest
25
25
import sqlite3 as sqlite
26
+ import sys
26
27
27
28
from test .support .os_helper import TESTFN , unlink
28
29
@@ -82,6 +83,9 @@ def test_not_supported_error(self):
82
83
sqlite .DatabaseError ),
83
84
"NotSupportedError is not a subclass of DatabaseError" )
84
85
86
+ # sqlite3_enable_shared_cache() is deprecated on macOS and calling it may raise
87
+ # OperationalError on some buildbots.
88
+ @unittest .skipIf (sys .platform == "darwin" , "shared cache is deprecated on macOS" )
85
89
def test_shared_cache_deprecated (self ):
86
90
for enable in (True , False ):
87
91
with self .assertWarns (DeprecationWarning ) as cm :
You can’t perform that action at this time.
0 commit comments