[GRASS-SVN] r74162 - grass/trunk/lib/gis/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 6 00:42:27 PST 2019


Author: neteler
Date: 2019-03-06 00:42:27 -0800 (Wed, 06 Mar 2019)
New Revision: 74162

Modified:
   grass/trunk/lib/gis/testsuite/test_parser_json.py
Log:
test_parser_json.py testsuite: use json instead of simplejson (fixes #3774) (contributed by pmav99)

Modified: grass/trunk/lib/gis/testsuite/test_parser_json.py
===================================================================
--- grass/trunk/lib/gis/testsuite/test_parser_json.py	2019-03-06 08:29:31 UTC (rev 74161)
+++ grass/trunk/lib/gis/testsuite/test_parser_json.py	2019-03-06 08:42:27 UTC (rev 74162)
@@ -10,7 +10,7 @@
 
 import subprocess
 from grass.gunittest.case import TestCase
-import simplejson
+import json
 
 
 class TestParserJson(TestCase):
@@ -39,7 +39,7 @@
 
         stdout, stderr = subprocess.Popen(args, stdout=subprocess.PIPE).communicate()
         print(stdout)
-        json_code = simplejson.loads(stdout)
+        json_code = json.loads(stdout)
         self.assertEqual(json_code["module"], "r.slope.aspect")
         self.assertEqual(len(json_code["inputs"]), 5)
         self.assertEqual(json_code["inputs"], inputs)
@@ -67,7 +67,7 @@
 
         stdout, stderr = subprocess.Popen(args, stdout=subprocess.PIPE).communicate()
         print(stdout)
-        json_code = simplejson.loads(stdout)
+        json_code = json.loads(stdout)
         self.assertEqual(json_code["module"], "v.out.ascii")
         self.assertEqual(len(json_code["inputs"]), 6)
         self.assertEqual(json_code["inputs"], inputs)
@@ -86,7 +86,7 @@
 
         stdout, stderr = subprocess.Popen(args, stdout=subprocess.PIPE).communicate()
         print(stdout)
-        json_code = simplejson.loads(stdout)
+        json_code = json.loads(stdout)
         self.assertEqual(json_code["module"], "v.info")
         self.assertEqual(len(json_code["inputs"]), 2)
         self.assertEqual(json_code["inputs"], inputs)



More information about the grass-commit mailing list