Make PL/Python tests more compatible with Python 3
Peter Eisentraut <peter_e@gmx.net>
Make PL/Python tests more compatible with Python 3 This changes a bunch of incidentially used constructs in the PL/Python regression tests to equivalent constructs in cases where Python 3 no longer supports the old syntax. Support for older Python versions is unchanged.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpython/expected/plpython_error_2.out | modified | +4 −4 |
| src/pl/plpython/expected/plpython_error.out | modified | +4 −4 |
| src/pl/plpython/expected/plpython_global.out | modified | +5 −5 |
| src/pl/plpython/expected/plpython_import.out | modified | +13 −7 |
| src/pl/plpython/expected/plpython_setof.out | modified | +1 −1 |
| src/pl/plpython/expected/plpython_spi.out | modified | +2 −2 |
| src/pl/plpython/expected/plpython_test.out | modified | +1 −1 |
| src/pl/plpython/expected/plpython_trigger.out | modified | +2 −2 |
| src/pl/plpython/sql/plpython_error.sql | modified | +4 −4 |
| src/pl/plpython/sql/plpython_global.sql | modified | +5 −5 |
| src/pl/plpython/sql/plpython_import.sql | modified | +13 −7 |
| src/pl/plpython/sql/plpython_setof.sql | modified | +1 −1 |
| src/pl/plpython/sql/plpython_spi.sql | modified | +2 −2 |
| src/pl/plpython/sql/plpython_test.sql | modified | +1 −1 |
| src/pl/plpython/sql/plpython_trigger.sql | modified | +2 −2 |