forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1a2752b
committed
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.(Seepython/cpython#25719 for the discussionof this change in Python.)Author: Honza Horak <hhorak@redhat.com>Discussion:https://www.postgresql.org/message-id/flat/853083.1620749597%40sss.pgh.pa.usRHBZ:https://bugzilla.redhat.com/show_bug.cgi?id=19590801 parent5a45603 commit1a2752b
File tree
2 files changed
+12
-6
lines changed- src/pl/plpython
- expected
- sql
2 files changed
+12
-6
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
240 |
| - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
241 | 244 |
| |
242 | 245 |
| |
243 | 246 |
| |
| |||
289 | 292 |
| |
290 | 293 |
| |
291 | 294 |
| |
292 |
| - | |
293 |
| - | |
| 295 | + | |
| 296 | + | |
294 | 297 |
| |
295 | 298 |
| |
296 | 299 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
162 |
| - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
163 | 166 |
| |
164 | 167 |
| |
165 | 168 |
| |
|
0 commit comments
Comments
(0)