[GRASS-SVN] r74275 - grass/trunk/vector/v.db.select/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 15 14:52:29 PDT 2019
Author: sbl
Date: 2019-03-15 14:52:29 -0700 (Fri, 15 Mar 2019)
New Revision: 74275
Modified:
grass/trunk/vector/v.db.select/testsuite/test_v_db_select.py
Log:
fix v.db.select test
Modified: grass/trunk/vector/v.db.select/testsuite/test_v_db_select.py
===================================================================
--- grass/trunk/vector/v.db.select/testsuite/test_v_db_select.py 2019-03-15 21:46:56 UTC (rev 74274)
+++ grass/trunk/vector/v.db.select/testsuite/test_v_db_select.py 2019-03-15 21:52:29 UTC (rev 74275)
@@ -188,7 +188,7 @@
sel = SimpleModule('v.db.select', flags='c', map=self.invect,
columns=self.col, group=self.col)
sel.run()
- self.assertLooksLike(reference=out_group, actual=sel.outputs.stdout)
+ self.assertLooksLike(reference=out_group, actual=sel.outputs.stdout.encode('utf8'))
def testWhere(self):
"""Testing v.db.select with where option"""
@@ -196,7 +196,7 @@
where="{col}='{val}'".format(col=self.col,
val=self.val))
sel.run()
- self.assertLooksLike(reference=out_where, actual=sel.outputs.stdout)
+ self.assertLooksLike(reference=out_where, actual=sel.outputs.stdout.encode('utf8'))
def testSeparator(self):
sel = SimpleModule('v.db.select', flags='c', map=self.invect,
@@ -204,7 +204,7 @@
val=self.val),
separator='comma')
sel.run()
- self.assertLooksLike(reference=out_sep, actual=sel.outputs.stdout)
+ self.assertLooksLike(reference=out_sep, actual=sel.outputs.stdout.encode('utf8'))
def testComma(self):
sel = SimpleModule('v.db.select', flags='c', map=self.invect,
@@ -212,7 +212,7 @@
val=self.val),
separator=',')
sel.run()
- self.assertLooksLike(reference=out_sep, actual=sel.outputs.stdout)
+ self.assertLooksLike(reference=out_sep, actual=sel.outputs.stdout.encode('utf8'))
if __name__ == '__main__':
test()
More information about the grass-commit
mailing list