Skip test when apsw is frozen without shell module

This commit is contained in:
Kovid Goyal 2025-09-25 07:56:46 +05:30
parent 23f0af168c
commit a132f837ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -729,6 +729,13 @@ class WritingTest(BaseTest):
def test_dump_and_restore(self): # {{{
' Test roundtripping the db through SQL '
try:
from apsw import shell
except Exception:
# apsw frozen without shell module
self.skipTest('apsw frozen without shell module')
return
del shell
import warnings
with warnings.catch_warnings():
# on python 3.10 apsw raises a deprecation warning which causes this test to fail on CI