Skip to content

Commit

Permalink
fix test again
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Apr 24, 2024
1 parent 82e0d26 commit 76f19fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ def test_execute_fail(setup):

def test_nocommit(setup):
kw, conn = setup
conn1 = getconn()
sqlutil.execute('create unlogged table sqlutil_test1 (a int)', conn=conn)
sqlutil.execute('insert into sqlutil_test1 values(1)', conn=conn)
sqlutil.execute('insert into sqlutil_test1 values(2)',
noCommit=True,
conn=conn1)
sqlutil.execute('insert into sqlutil_test1 values(2)', noCommit=True, **kw)

cnt, = sqlutil.get('select count(*) from sqlutil_test1', conn=conn)
assert (cnt[0] == 1)
sqlutil.execute('drop table sqlutil_test1;', conn=conn)
Expand Down

0 comments on commit 76f19fa

Please sign in to comment.