[GRASS-SVN] r74270 - grass/trunk/temporal/t.rast3d.univar/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 15 14:02:33 PDT 2019


Author: sbl
Date: 2019-03-15 14:02:33 -0700 (Fri, 15 Mar 2019)
New Revision: 74270

Modified:
   grass/trunk/temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py
Log:
fix t.rast3d.univar test

Modified: grass/trunk/temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py
===================================================================
--- grass/trunk/temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py	2019-03-15 20:48:57 UTC (rev 74269)
+++ grass/trunk/temporal/t.rast3d.univar/testsuite/test_t_rast3d_univar.py	2019-03-15 21:02:33 UTC (rev 74270)
@@ -54,7 +54,7 @@
 a_3 at testing|2001-07-01 00:00:00|2001-10-01 00:00:00|300|300|300|300|0|0|0|144000000|0|480000|480000
 a_4 at testing|2001-10-01 00:00:00|2002-01-01 00:00:00|400|400|400|400|0|0|0|192000000|0|480000|480000
 """
-        for ref, res in zip(univar_text.split("\n"), t_rast3d_univar.outputs.stdout.split("\n")):
+        for ref, res in zip(univar_text.split("\n"), t_rast3d_univar.outputs.stdout.encode('utf8').split("\n")):
             if ref and res:
                 ref_line = ref.split("|", 1)[1]
                 res_line = res.split("|", 1)[1]
@@ -72,7 +72,7 @@
 a_3 at testing|2001-07-01 00:00:00|2001-10-01 00:00:00|300|300|300|300|0|0|0|144000000|0|480000|480000
 a_4 at testing|2001-10-01 00:00:00|2002-01-01 00:00:00|400|400|400|400|0|0|0|192000000|0|480000|480000
 """
-        for ref, res in zip(univar_text.split("\n"), t_rast3d_univar.outputs.stdout.split("\n")):
+        for ref, res in zip(univar_text.split("\n"), t_rast3d_univar.outputs.stdout.encode('utf8').split("\n")):
             if ref and res:
                 ref_line = ref.split("|", 1)[1]
                 res_line = res.split("|", 1)[1]
@@ -92,7 +92,7 @@
 """
         univar_output = open("univar_output.txt", "r").read()
 
-        for ref, res in zip(univar_text.split("\n"), univar_output.split("\n")):
+        for ref, res in zip(univar_text.split("\n"), univar_output.encode('utf8').split("\n")):
             if ref and res:
                 ref_line = ref.split("|", 1)[1]
                 res_line = res.split("|", 1)[1]
@@ -111,7 +111,7 @@
 """
         univar_output = open("univar_output.txt", "r").read()
 
-        for ref, res in zip(univar_text.split("\n"), univar_output.split("\n")):
+        for ref, res in zip(univar_text.split("\n"), univar_output.encode('utf8').split("\n")):
             if ref and res:
                 ref_line = ref.split("|", 1)[1]
                 res_line = res.split("|", 1)[1]



More information about the grass-commit mailing list