]> granicus.if.org Git - postgresql/commit
PL/Python: Fix tests for older Python versions
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 22 Jan 2018 17:09:52 +0000 (12:09 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 22 Jan 2018 17:09:52 +0000 (12:09 -0500)
commitf498704346a4ce4953fc5f837cacb545b3166ee1
tree8b2fc5014d9d9651b5c7ef6ea9e975b1a374a5e5
parent2b792ab094415f351abd5854de5cefb023931a85
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.
src/pl/plpython/expected/plpython_transaction.out
src/pl/plpython/sql/plpython_transaction.sql