[GRASS-SVN] r74279 - grass/trunk/temporal/t.rast.gapfill/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 16 06:56:55 PDT 2019


Author: sbl
Date: 2019-03-16 06:56:55 -0700 (Sat, 16 Mar 2019)
New Revision: 74279

Modified:
   grass/trunk/temporal/t.rast.gapfill/testsuite/test_gapfill.py
Log:
fix t.rast.gapfill test

Modified: grass/trunk/temporal/t.rast.gapfill/testsuite/test_gapfill.py
===================================================================
--- grass/trunk/temporal/t.rast.gapfill/testsuite/test_gapfill.py	2019-03-16 13:52:18 UTC (rev 74278)
+++ grass/trunk/temporal/t.rast.gapfill/testsuite/test_gapfill.py	2019-03-16 13:56:55 UTC (rev 74279)
@@ -86,7 +86,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
     def test_simple_where(self):
         self.assertModule("t.rast.gapfill", input="A",  where="start_time >= '2001-03-01'", 
@@ -121,7 +121,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
     def test_simple_where_2(self):
         self.assertModule("t.rast.gapfill", input="A",  where="start_time <= '2001-05-01'", 
@@ -151,7 +151,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
     def test_simple_empty(self):
         self.assertModule("t.rast.gapfill", input="A",  where="start_time >= '2001-10-01'", 
@@ -179,7 +179,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
     def test_simple_gran(self):
         self.assertModule("t.rast.gapfill", input="A",
@@ -217,7 +217,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
     def test_simple_gran(self):
         self.assertModule("t.rast.gapfill", input="A", suffix="time",
@@ -255,7 +255,7 @@
 """
         rast_list = SimpleModule("t.rast.list", columns=("name","start_time","end_time","min,max"),  input="A")
         self.assertModule(rast_list)
-        self.assertLooksLike(text,  rast_list.outputs.stdout)
+        self.assertLooksLike(text,  rast_list.outputs.stdout.encode('utf8'))
 
 if __name__ == '__main__':
     from grass.gunittest.main import test



More information about the grass-commit mailing list