mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Skip legacy db test when python sqlite3 module does not have FTS support
This commit is contained in:
parent
1f253580b5
commit
655c9c950c
@ -344,6 +344,14 @@ class LegacyTest(BaseTest):
|
|||||||
|
|
||||||
def test_legacy_adding_books(self): # {{{
|
def test_legacy_adding_books(self): # {{{
|
||||||
'Test various adding/deleting books methods'
|
'Test various adding/deleting books methods'
|
||||||
|
import sqlite3
|
||||||
|
con = sqlite3.connect(":memory:")
|
||||||
|
try:
|
||||||
|
con.execute("create virtual table recipe using fts5(name, ingredients)")
|
||||||
|
except Exception:
|
||||||
|
self.skipTest('python sqlite3 module does not have FTS5 support')
|
||||||
|
con.close()
|
||||||
|
del con
|
||||||
from calibre.ebooks.metadata.book.base import Metadata
|
from calibre.ebooks.metadata.book.base import Metadata
|
||||||
from calibre.ptempfile import TemporaryFile
|
from calibre.ptempfile import TemporaryFile
|
||||||
legacy, old = self.init_legacy(self.cloned_library), self.init_old(self.cloned_library)
|
legacy, old = self.init_legacy(self.cloned_library), self.init_old(self.cloned_library)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user