diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2022-07-28 13:30:32 +0200 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2022-07-28 13:30:32 +0200 |
| commit | f07b3ad0a69d28d66ed69e5762fe3f6f57aa4e66 (patch) | |
| tree | 3a367cb650e920b5efa31e8f32691f7e99ef8d63 /tests/test_cursor.py | |
| parent | 611c610041675be916cdacfc50371f9350fb376c (diff) | |
| parent | 25c40f8ac30af161617181e40ecfcbbe767210b6 (diff) | |
| download | psycopg2-f07b3ad0a69d28d66ed69e5762fe3f6f57aa4e66.tar.gz | |
Merge branch 'build-macos-arm64'
Diffstat (limited to 'tests/test_cursor.py')
| -rwxr-xr-x | tests/test_cursor.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 48a9e78..5de989e 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -379,6 +379,12 @@ class CursorTests(ConnectingTestCase): @skip_before_postgres(8, 2) def test_rowcount_on_executemany_returning(self): cur = self.conn.cursor() + try: + cur.execute("drop table execmany") + self.conn.commit() + except psycopg2.DatabaseError: + self.conn.rollback() + cur.execute("create table execmany(id serial primary key, data int)") cur.executemany( "insert into execmany (data) values (%s)", |
