[GRASS-SVN] r74274 - grass/trunk/scripts/v.rast.stats/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 15 14:46:56 PDT 2019
Author: sbl
Date: 2019-03-15 14:46:56 -0700 (Fri, 15 Mar 2019)
New Revision: 74274
Modified:
grass/trunk/scripts/v.rast.stats/testsuite/test_v_rast_stats.py
Log:
fix v.rast.stats test
Modified: grass/trunk/scripts/v.rast.stats/testsuite/test_v_rast_stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/testsuite/test_v_rast_stats.py 2019-03-15 21:33:44 UTC (rev 74273)
+++ grass/trunk/scripts/v.rast.stats/testsuite/test_v_rast_stats.py 2019-03-15 21:46:56 UTC (rev 74274)
@@ -61,7 +61,7 @@
v_db_select = SimpleModule("v.db.select", map="zone_map")
self.runModule(v_db_select)
- self.assertLooksLike(univar_string, v_db_select.outputs.stdout)
+ self.assertLooksLike(univar_string, v_db_select.outputs.stdout.encode('utf-8'))
def test_line_d(self):
@@ -75,7 +75,7 @@
v_db_select = SimpleModule("v.db.select", map="test_line")
self.runModule(v_db_select)
- self.assertLooksLike(output_str, v_db_select.outputs.stdout)
+ self.assertLooksLike(output_str, v_db_select.outputs.stdout.encode('utf-8'))
def test_line(self):
@@ -90,7 +90,7 @@
v_db_select = SimpleModule("v.db.select", map="test_line")
self.runModule(v_db_select)
- self.assertLooksLike(output_str, v_db_select.outputs.stdout)
+ self.assertLooksLike(output_str, v_db_select.outputs.stdout.encode('utf-8'))
class TestRastStatsFails(TestCase):
More information about the grass-commit
mailing list