Skip to content

Commit bd353e3

Browse files
Pin sync Cursor.lastrowid initial-state as None
The async cursor tests already assert lastrowid is None before any execute; the sync cursor tests did not. Add the parallel check so both code paths are covered by equivalent pin tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e23e9f7 commit bd353e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_cursor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def test_rowcount_initially_minus_one(self) -> None:
1818
cursor = Cursor(conn)
1919
assert cursor.rowcount == -1
2020

21+
def test_lastrowid_initially_none(self) -> None:
22+
conn = Connection("localhost:9001")
23+
cursor = Cursor(conn)
24+
assert cursor.lastrowid is None
25+
2126
def test_arraysize_default(self) -> None:
2227
conn = Connection("localhost:9001")
2328
cursor = Cursor(conn)

0 commit comments

Comments
 (0)