aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-06-05 07:16:34 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-06-17 09:02:20 +0200
commit9438962ce32fd2fa437b5a447c40c5dac2ef9f08 (patch)
tree653f9a599e1997dace8b68dae6e3cb376ef23118 /src/tutorial/funcs.c
parenteb231dbd80d2318e27e9b4d0aa72696de6e6b32f (diff)
downloadpostgresql-9438962ce32fd2fa437b5a447c40c5dac2ef9f08.tar.gz
postgresql-9438962ce32fd2fa437b5a447c40c5dac2ef9f08.zip
Fix subtransaction test for Python 3.10
Starting with Python 3.10, the stacktrace looks differently: - PL/Python function "subtransaction_exit_subtransaction_in_with", line 3, in <module> - s.__exit__(None, None, None) + PL/Python function "subtransaction_exit_subtransaction_in_with", line 2, in <module> + with plpy.subtransaction() as s: Using try/except specifically makes the error look always the same. (See https://github.com/python/cpython/pull/25719 for the discussion of this change in Python.) Author: Honza Horak <hhorak@redhat.com> Discussion: https://www.postgresql.org/message-id/flat/853083.1620749597%40sss.pgh.pa.us RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1959080
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions