[GRASS-SVN] r74272 - grass/trunk/temporal/t.rast.univar/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 15 14:16:25 PDT 2019
Author: sbl
Date: 2019-03-15 14:16:25 -0700 (Fri, 15 Mar 2019)
New Revision: 74272
Modified:
grass/trunk/temporal/t.rast.univar/testsuite/test_t_rast_univar.py
Log:
fix t.rast.univar
Modified: grass/trunk/temporal/t.rast.univar/testsuite/test_t_rast_univar.py
===================================================================
--- grass/trunk/temporal/t.rast.univar/testsuite/test_t_rast_univar.py 2019-03-15 21:10:04 UTC (rev 74271)
+++ grass/trunk/temporal/t.rast.univar/testsuite/test_t_rast_univar.py 2019-03-15 21:16:25 UTC (rev 74272)
@@ -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|2880000|0|9600|9600
a_4 at testing|2001-10-01 00:00:00|2002-01-01 00:00:00|400|400|400|400|0|0|0|3840000|0|9600|9600
"""
- for ref, res in zip(univar_text.split("\n"), t_rast_univar.outputs.stdout.split("\n")):
+ for ref, res in zip(univar_text.split("\n"), t_rast_univar.outputs.stdout.encode('utf8').split("\n")):
if ref and res:
ref_line = ref.split("|", 1)[1]
res_line = res.split("|", 1)[1]
@@ -73,7 +73,7 @@
a_3 at testing|2001-07-01 00:00:00|2001-10-01 00:00:00|300|300|300|300|0|0|0|2880000|0|9600|9600
a_4 at testing|2001-10-01 00:00:00|2002-01-01 00:00:00|400|400|400|400|0|0|0|3840000|0|9600|9600
"""
- for ref, res in zip(univar_text.split("\n"), t_rast_univar.outputs.stdout.split("\n")):
+ for ref, res in zip(univar_text.split("\n"), t_rast_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 @@
a_3 at testing|2001-07-01 00:00:00|2001-10-01 00:00:00|300|300|300|300|0|0|0|28800|0|96|96
a_4 at testing|2001-10-01 00:00:00|2002-01-01 00:00:00|400|400|400|400|0|0|0|38400|0|96|96
"""
- for ref, res in zip(univar_text.split("\n"), t_rast_univar.outputs.stdout.split("\n")):
+ for ref, res in zip(univar_text.split("\n"), t_rast_univar.outputs.stdout.encode('utf8').split("\n")):
if ref and res:
ref_line = ref.split("|", 1)[1]
res_line = res.split("|", 1)[1]
@@ -113,7 +113,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]
@@ -133,7 +133,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