mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-04 03:00:20 -05:00
Skip test when apsw is frozen without shell module
This commit is contained in:
parent
23f0af168c
commit
a132f837ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user