Skip to content

Commit 3816a98

Browse files
committed
fix test
1 parent f3ea4f5 commit 3816a98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_cursor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ def test_dictcursor():
138138
assert a is b
139139

140140
# Old fetchtype
141+
cursor._fetch_type = 2
141142
cursor.execute("SELECT * FROM t1 JOIN t2 ON t1.b=t2.b")
142-
rows = cursor._result.fetch_row(0, 2)
143+
rows = cursor.fetchall()
143144

144145
assert len(rows) == 2
145146
assert rows[0] == {"t1.a": 1, "t1.b": 1, "t1.c": 47, "t2.b": 1, "t2.c": 1}

0 commit comments

Comments
 (0)