Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ async def test_system_engine(

if connection_system_engine.database:
await c.execute("show tables")
await c.execute(
"create table if not exists test_async(id int) primary index id"
)
with raises(OperationalError):
await c.execute("create table test(id int) primary index id")
await c.execute("insert into test values (1)")
else:
await c.execute("show databases")
with raises(OperationalError):
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/dbapi/sync/V2/test_system_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def test_system_engine(

if connection_system_engine.database:
c.execute("show tables")
c.execute("create table if not exists test_sync(id int) primary index id")
with raises(OperationalError):
c.execute("create table test(id int) primary index id")
c.execute("insert into test values (1)")
else:
c.execute("show databases")
with raises(OperationalError):
Expand Down