[GRASS-SVN] r73586 - grass/trunk/lib/python/pygrass/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 21 11:03:54 PDT 2018


Author: huhabla
Date: 2018-10-21 11:03:54 -0700 (Sun, 21 Oct 2018)
New Revision: 73586

Modified:
   grass/trunk/lib/python/pygrass/gis/__init__.py
Log:
pygrass library: Fixed doctests in __init__

Modified: grass/trunk/lib/python/pygrass/gis/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/gis/__init__.py	2018-10-21 18:03:24 UTC (rev 73585)
+++ grass/trunk/lib/python/pygrass/gis/__init__.py	2018-10-21 18:03:54 UTC (rev 73586)
@@ -14,6 +14,9 @@
 from grass.pygrass.errors import GrassError
 from grass.script.utils import encode, decode
 
+test_vector_name = "Gis_test_vector"
+test_raster_name = "Gis_test_raster"
+
 libgis.G_gisinit('')
 
 
@@ -466,9 +469,6 @@
     from grass.pygrass import utils
     from grass.script.core import run_command
 
-    test_vector_name = "Gis_test_vector"
-    test_raster_name = "Gis_test_raster"
-
     utils.create_test_vector_map(test_vector_name)
     run_command("g.region", n=50, s=0, e=60, w=0, res=1)
     run_command("r.mapcalc", expression="%s = 1" % (test_raster_name),



More information about the grass-commit mailing list