Commit fab6ca23 authored by Peter Eisentraut's avatar Peter Eisentraut

hstore_plpython: Fix regression tests under Python 3

parent e6dc5034
......@@ -6,7 +6,7 @@ LANGUAGE plpythonu
TRANSFORM FOR TYPE hstore
AS $$
assert isinstance(val, dict)
i = val.items()
i = list(val.items())
i.sort()
plpy.info(i)
return len(val)
......@@ -25,7 +25,7 @@ LANGUAGE plpython2u
TRANSFORM FOR TYPE hstore
AS $$
assert isinstance(val, dict)
i = val.items()
i = list(val.items())
i.sort()
plpy.info(i)
return len(val)
......
......@@ -8,7 +8,7 @@ LANGUAGE plpythonu
TRANSFORM FOR TYPE hstore
AS $$
assert isinstance(val, dict)
i = val.items()
i = list(val.items())
i.sort()
plpy.info(i)
return len(val)
......@@ -23,7 +23,7 @@ LANGUAGE plpython2u
TRANSFORM FOR TYPE hstore
AS $$
assert isinstance(val, dict)
i = val.items()
i = list(val.items())
i.sort()
plpy.info(i)
return len(val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment