File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 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):
9696 "the cache=shared query parameter."
9797 )
9898 warnings .warn (msg , DeprecationWarning , stacklevel = 2 )
99- return _old_enable_shared_cache
99+ return _old_enable_shared_cache ( enable )
100100
101101# Clean up namespace
102102
Original file line number Diff line number Diff line change 2323import threading
2424import unittest
2525import sqlite3 as sqlite
26+ import sys
2627
2728from test .support .os_helper import TESTFN , unlink
2829
@@ -82,6 +83,9 @@ def test_not_supported_error(self):
8283 sqlite .DatabaseError ),
8384 "NotSupportedError is not a subclass of DatabaseError" )
8485
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" )
8589 def test_shared_cache_deprecated (self ):
8690 for enable in (True , False ):
8791 with self .assertWarns (DeprecationWarning ) as cm :
You can’t perform that action at this time.
0 commit comments