summaryrefslogtreecommitdiff
path: root/test/dialect/test_sqlite.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r--test/dialect/test_sqlite.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py
index 4fe419865..d7021a343 100644
--- a/test/dialect/test_sqlite.py
+++ b/test/dialect/test_sqlite.py
@@ -717,18 +717,22 @@ class DialectTest(
assert e.pool.__class__ is pool.SingletonThreadPool
e = create_engine("sqlite+pysqlite:///foo.db")
- assert e.pool.__class__ is pool.NullPool
+ # changed as of 2.0 #7490
+ assert e.pool.__class__ is pool.QueuePool
@combinations(
(
"sqlite:///foo.db", # file path is absolute
- ([os.path.abspath("foo.db")], {}),
+ ([os.path.abspath("foo.db")], {"check_same_thread": False}),
),
(
"sqlite:////abs/path/to/foo.db",
- ([os.path.abspath("/abs/path/to/foo.db")], {}),
+ (
+ [os.path.abspath("/abs/path/to/foo.db")],
+ {"check_same_thread": False},
+ ),
),
- ("sqlite://", ([":memory:"], {})),
+ ("sqlite://", ([":memory:"], {"check_same_thread": True})),
(
"sqlite:///?check_same_thread=true",
([":memory:"], {"check_same_thread": True}),
@@ -743,11 +747,17 @@ class DialectTest(
),
(
"sqlite:///file:path/to/database?" "mode=ro&uri=true",
- (["file:path/to/database?mode=ro"], {"uri": True}),
+ (
+ ["file:path/to/database?mode=ro"],
+ {"uri": True, "check_same_thread": False},
+ ),
),
(
"sqlite:///file:path/to/database?uri=true",
- (["file:path/to/database"], {"uri": True}),
+ (
+ ["file:path/to/database"],
+ {"uri": True, "check_same_thread": False},
+ ),
),
)
def test_connect_args(self, url, expected):