[GRASS-dev] Tests down to 78% (from 84%), mostly PyGRASS

Vaclav Petras wenzeslaus at gmail.com
Fri Jan 9 07:01:20 PST 2015

On Mon, Jan 5, 2015 at 4:15 PM, Martin Landa <landa.martin at gmail.com> wrote:

> 2015-01-05 21:21 GMT+01:00 Markus Neteler <neteler at osgeo.org>:
> > No problem. The only remaining thing which I don't understand how to
> > fix it is this:
> >
> >   File "./lib/gis/testsuite/gis_lib_env_test.py", line 31, in test_gisrc
> >     libgis.G__read_gisrc_env()
> > AttributeError: 'module' object has no attribute 'G__read_gisrc_env'
> done in r63960 (and backported). Martin

On Wed, Jan 7, 2015 at 10:37 AM, Pietro <peter.zamb at gmail.com> wrote:

> Il 07/gen/2015 16:11 "Vaclav Petras"  wrote:
> > Thanks but the tests are failing with different error now:
> >
> >
> > Traceback (most recent call last):
> >   File "lib/python/pygrass/raster/testsuite/test_raster.py", line 6, in
> <module>
> >     from grass.pygrass.raster import RasterRow
> >   File "etc/python/grass/pygrass/raster/__init__.py", line 24, in
> <module>
> >    from grass.pygrass.gis.region import Region
> >   File "etc/python/grass/pygrass/gis/__init__.py", line 22, in <module>
> >     'icon': libgis.G_ELEMENT_ICON,
> > AttributeError: 'module' object has no attribute 'G_ELEMENT_ICON'
> I saw the error this morning. Should be fixed in r63972.
> Pietro
To see if the tests are successful before you commit anything use inside
GRASS session:

python -m grass.gunittest.main --location nc_spm_grass7 --location-type nc

where "nc_spm_grass7" is your GRASS GIS sample NC SPM location. Read more
about running tests here:


I went through the tests and there is still several issues (ignoring the
once caused by different maps in NC full and basic):


NameError: name 'Region' is not defined

OpenError: The map does not exist, I can't open in 'r' mode
(probably missing map but the error message should be better)

AttributeError: 'module' object has no attribute 'grid'

AttributeError: 'module' object has no attribute 'conversion'

AttributeError: 'module' object has no attribute 'region'

RuntimeError: Module call r3.univar(...) ended successfully but we were
expecting output and got nothing. There were no error messages.
(see #2269, http://trac.osgeo.org/grass/ticket/2269)

(hard to tell, it is an bash script)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150109/b0e9de12/attachment.html>

More information about the grass-dev mailing list