postgresql/src/pl
Peter Eisentraut 3989f8fb9d 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
2021-06-17 09:01:22 +02:00
..
plperl Translation updates 2021-05-10 14:32:18 +02:00
plpgsql Force NO SCROLL for plpgsql's implicit cursors. 2021-06-08 18:40:06 -04:00
plpython Fix subtransaction test for Python 3.10 2021-06-17 09:01:22 +02:00
tcl Translation updates 2021-05-10 14:32:18 +02:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00