[GRASS-SVN] r69505 - grass/trunk/raster/r.mapcalc/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 16 08:23:53 PDT 2016
Author: huhabla
Date: 2016-09-16 08:23:53 -0700 (Fri, 16 Sep 2016)
New Revision: 69505
Modified:
grass/trunk/raster/r.mapcalc/testsuite/test_row_above_below_bug.py
Log:
r.mapcalc: Fixed test by adding overwrite flag
Modified: grass/trunk/raster/r.mapcalc/testsuite/test_row_above_below_bug.py
===================================================================
--- grass/trunk/raster/r.mapcalc/testsuite/test_row_above_below_bug.py 2016-09-16 11:19:23 UTC (rev 69504)
+++ grass/trunk/raster/r.mapcalc/testsuite/test_row_above_below_bug.py 2016-09-16 15:23:53 UTC (rev 69505)
@@ -57,11 +57,11 @@
def setUp(self):
self.use_temp_region()
self.runModule('r.in.ascii', input='-', stdin_=INPUT,
- output=self.input)
+ output=self.input, overwrite=True)
self.to_remove.append(self.input)
self.runModule('g.region', raster=self.input)
self.runModule('r.in.ascii', input='-', stdin_=OUTPUT,
- output=self.output_ref)
+ output=self.output_ref, overwrite=True)
self.to_remove.append(self.output_ref)
def tearDown(self):
@@ -74,7 +74,7 @@
"""Expects just RHS and inputs as ``{m}`` for format function"""
expression = expression.format(m=self.input)
expression = "{} = {}".format(self.output, expression)
- self.assertModule('r.mapcalc', expression=expression)
+ self.assertModule('r.mapcalc', expression=expression, overwrite=True)
self.assertRasterExists(self.output)
self.to_remove.append(self.output)
ref_univar = dict(null_cells=6, cells=9)
More information about the grass-commit
mailing list