[GRASS-SVN] r74418 - grass/trunk/temporal/t.rast.what/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 24 13:24:50 PDT 2019
Author: sbl
Date: 2019-04-24 13:24:50 -0700 (Wed, 24 Apr 2019)
New Revision: 74418
Modified:
grass/trunk/temporal/t.rast.what/testsuite/test_what.py
Log:
make test_what.py pass with Python 2 and 3
Modified: grass/trunk/temporal/t.rast.what/testsuite/test_what.py
===================================================================
--- grass/trunk/temporal/t.rast.what/testsuite/test_what.py 2019-04-24 14:35:01 UTC (rev 74417)
+++ grass/trunk/temporal/t.rast.what/testsuite/test_what.py 2019-04-24 20:24:50 UTC (rev 74418)
@@ -144,7 +144,7 @@
79.6816763826|45.2391522853|2001-10-01 00:00:00|2002-01-01 00:00:00|400
97.4892579600|79.2347263950|2001-10-01 00:00:00|2002-01-01 00:00:00|400
"""
- self.assertLooksLike(text, t_rast_what.outputs.stdout.encode('utf8'))
+ self.assertLooksLike(text, str(t_rast_what.outputs.stdout))
def test_row_stdout_where_parallel_cat(self):
@@ -165,7 +165,7 @@
2|79.6816763826|45.2391522853|2001-10-01 00:00:00|2002-01-01 00:00:00|400
3|97.4892579600|79.2347263950|2001-10-01 00:00:00|2002-01-01 00:00:00|400
"""
- self.assertLooksLike(text, t_rast_what.outputs.stdout.encode('utf8'))
+ self.assertLooksLike(text, str(t_rast_what.outputs.stdout))
def test_row_stdout_where_parallel2(self):
"""Here without output definition, the default is used then"""
@@ -186,7 +186,7 @@
79.6816763826|45.2391522853|2001-10-01 00:00:00|2002-01-01 00:00:00|400
97.4892579600|79.2347263950|2001-10-01 00:00:00|2002-01-01 00:00:00|400
"""
- self.assertLooksLike(text, t_rast_what.outputs.stdout.encode('utf8'))
+ self.assertLooksLike(text, str(t_rast_what.outputs.stdout))
def test_row_output_where_parallel(self):
self.assertModule("t.rast.what", strds="A", output="out_where.txt",
@@ -260,7 +260,7 @@
115.0043586274|36.3593955783|2001-01-01 00:00:00|2001-04-01 00:00:00|100
115.0043586274|36.3593955783|2001-04-01 00:00:00|2001-07-01 00:00:00|NULL
"""
- self.assertLooksLike(text, t_rast_what.outputs.stdout.encode('utf8'))
+ self.assertLooksLike(text, str(t_rast_what.outputs.stdout))
if __name__ == '__main__':
More information about the grass-commit
mailing list