Ver código fonte

pygrass: fix some doctests

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61990 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 anos atrás
pai
commit
a9301173fc

+ 1 - 1
lib/python/pygrass/functions.py

@@ -206,7 +206,7 @@ def get_raster_for_points(poi_vector, raster, column=None):
     >>> ele = RasterRow('elevation')
     >>> copy('schools','myschools','vect')
     >>> sch = VectorTopo('myschools')
-    >>> sch.open()
+    >>> sch.open(mode='r')
     >>> get_raster_for_points(sch, ele)               # doctest: +ELLIPSIS
     [(1, 633649.2856743174, 221412.94434781274, 145.06602)...
     >>> sch.table.columns.add('elevation','double precision')

+ 0 - 6
lib/python/pygrass/messages/__init__.py

@@ -130,12 +130,6 @@ class Messenger(object):
        >>> msgr.percent(1, 1, 1)
        >>> msgr.warning("Ohh")
        >>> msgr.error("Ohh no")
-       D0/0: debug 0
-       message
-       important message
-        100%
-       WARNING: Ohh
-       ERROR: Ohh no
 
        >>> msgr = Messenger()
        >>> msgr.fatal("Ohh no no no!")

+ 1 - 1
lib/python/pygrass/vector/abstract.py

@@ -31,7 +31,7 @@ class Info(object):
     To get access to the vector info the map must be opened. ::
 
         >>> cens = Info('census')
-        >>> cens.open()
+        >>> cens.open(mode='r')
 
     Then it is possible to read and write the following map attributes: ::