We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cce3a commit 7ba4f03Copy full SHA for 7ba4f03
tests/test_connection.py
@@ -16,6 +16,7 @@ async def _test_isolation_level_read_only(
16
isolation_level: str,
17
read_only: bool,
18
) -> None:
19
+ connection.set_isolation_level("AUTOCOMMIT")
20
async with connection.cursor() as cursor:
21
with suppress(dbapi.DatabaseError):
22
await cursor.execute("DROP TABLE foo")
@@ -39,6 +40,8 @@ async def _test_isolation_level_read_only(
39
40
41
await connection.rollback()
42
43
44
+
45
46
47
0 commit comments