Skip to content

Commit 2e9bd63

Browse files
committed
ensure test_scroll_errors and test_sscursor_scroll_errors initialize their tables, this resulted in test failures on macOS
1 parent 91e797e commit 2e9bd63

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/test_cursor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ async def test_scroll_absolute(connection_creator):
9494
@pytest.mark.run_loop
9595
async def test_scroll_errors(connection_creator):
9696
conn = await connection_creator()
97+
await _prepare(conn)
9798
cur = await conn.cursor()
9899

99100
with pytest.raises(ProgrammingError):

tests/test_sscursor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ async def test_sscursor_scroll_absolute(connection):
132132
@pytest.mark.run_loop
133133
async def test_sscursor_scroll_errors(connection):
134134
conn = connection
135+
await _prepare(conn)
135136
cursor = await conn.cursor(SSCursor)
136137

137138
await cursor.execute('SELECT * FROM tz_data;')
@@ -151,7 +152,7 @@ async def test_sscursor_scroll_errors(connection):
151152
async def test_sscursor_cancel(connection):
152153
conn = connection
153154
cur = await conn.cursor(SSCursor)
154-
# Prepare ALOT of data
155+
# Prepare A LOT of data
155156

156157
await cur.execute('DROP TABLE IF EXISTS long_seq;')
157158
await cur.execute(

0 commit comments

Comments
 (0)