def test_sqlite(): from openid.store import sqlstore import sqlite3 conn = sqlite3.connect(':memory:') store = sqlstore.SQLiteStore(conn) store.createTables() testStore(store)
def test_sqlite(): from openid.store import sqlstore try: from pysqlite2 import dbapi2 as sqlite except ImportError: pass else: conn = sqlite.connect(':memory:') store = sqlstore.SQLiteStore(conn) store.createTables() testStore(store)