Skip to content

Commit a79641a

Browse files
committed
Add table cleanup before tests in test_array.py
1 parent 61bca1f commit a79641a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/types/test_array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def test_empty_list_mix(conn, fmt_in):
246246
@pytest.mark.parametrize("fmt_in", PyFormat)
247247
def test_empty_list(conn, fmt_in):
248248
cur = conn.cursor()
249+
cur.execute("drop table if exists test")
249250
cur.execute("create table test (id serial primary key, data date[])")
250251
with conn.transaction():
251252
cur.execute(
@@ -265,6 +266,7 @@ def test_empty_list(conn, fmt_in):
265266
@pytest.mark.parametrize("fmt_in", PyFormat)
266267
def test_empty_list_after_choice(conn, fmt_in):
267268
cur = conn.cursor()
269+
cur.execute("drop table if exists test")
268270
cur.execute("create table test (id serial primary key, data float[])")
269271
cur.executemany(
270272
f"insert into test (data) values (%{fmt_in.value})", [([1.0],), ([],)]

0 commit comments

Comments
 (0)