Skip to content

Commit 51b40f0

Browse files
committed
Looks like the new plpython regression test fails on older pythons. See if this works.
1 parent 7a846ec commit 51b40f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pl/plpython/expected/plpython_function.out

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ CREATE FUNCTION trigger_data() returns trigger language plpythonu as $$
123123
if TD.has_key('relid'):
124124
TD['relid'] = "bogus:12345"
125125

126-
for key in sorted(TD.keys()):
126+
skeys = TD.keys()
127+
skeys.sort()
128+
for key in skeys:
127129
val = TD[key]
128130
plpy.notice("TD[" + key + "] => " + str(val))
129131

src/pl/plpython/sql/plpython_function.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ CREATE FUNCTION trigger_data() returns trigger language plpythonu as $$
151151
if TD.has_key('relid'):
152152
TD['relid'] = "bogus:12345"
153153

154-
for key in sorted(TD.keys()):
154+
skeys = TD.keys()
155+
skeys.sort()
156+
for key in skeys:
155157
val = TD[key]
156158
plpy.notice("TD[" + key + "] => " + str(val))
157159

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy