pgsql: PL/Python: Fix tests for older Python versions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python: Fix tests for older Python versions
Date: 2018-01-22 17:11:30
Message-ID: E1edfd4-0000XI-IN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

PL/Python: Fix tests for older Python versions

Commit 8561e4840c81f7e345be2df170839846814fa004 neglected to handle
older Python versions that don't support the "with" statement. So write
the tests in a way that older versions can handle as well.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f498704346a4ce4953fc5f837cacb545b3166ee1

Modified Files
--------------
src/pl/plpython/expected/plpython_transaction.out | 5 +++--
src/pl/plpython/sql/plpython_transaction.sql | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-01-22 17:37:15 pgsql: Reorder code in pg_dump to dump comments etc in a uniform order.
Previous Message Tom Lane 2018-01-22 17:06:48 pgsql: Make pg_dump's ACL, sec label, and comment entries reliably iden