From e81fc9b9dbf9d744dcc9fb210e4353a350be1e22 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut
Date: Wed, 28 Mar 2018 11:01:40 -0400
Subject: Fix jsonb_plpython tests on older Python versions

Rewrite one test to avoid a case where some Python versions have output
format differences (Decimal('1') vs Decimal("1")).
---
 contrib/jsonb_plpython/sql/jsonb_plpython.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'contrib/jsonb_plpython/sql/jsonb_plpython.sql')

diff --git a/contrib/jsonb_plpython/sql/jsonb_plpython.sql b/contrib/jsonb_plpython/sql/jsonb_plpython.sql
index eaf2f625a6f..b4b0820afe6 100644
--- a/contrib/jsonb_plpython/sql/jsonb_plpython.sql
+++ b/contrib/jsonb_plpython/sql/jsonb_plpython.sql
@@ -6,7 +6,7 @@ LANGUAGE plpythonu
 TRANSFORM FOR TYPE jsonb
 AS $$
 assert isinstance(val, dict)
-plpy.info(sorted(val.items()))
+assert(val == {'a': 1, 'c': 'NULL'})
 return len(val)
 $$;
 
-- 
cgit v1.2.3

