test_doctests stderr

etc/python/grass/lib/gis.py:801: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
FWARNING: <census> not found
WARNING: vector <mycensus> not found
..FF/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
WARNING: <schools> not found
FFWARNING: Illegal filename <c√©nsus>. Character <√> not allowed.

F.F.
======================================================================
FAIL: coor2pixel (grass.pygrass.utils)
Doctest: grass.pygrass.utils.coor2pixel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.coor2pixel
  File "etc/python/grass/pygrass/utils.py", line 164, in coor2pixel

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 167, in grass.pygrass.utils.coor2pixel
Failed example:
    reg = Region()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.coor2pixel[0]>", line 1, in <module>
        reg = Region()
    NameError: name 'Region' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 168, in grass.pygrass.utils.coor2pixel
Failed example:
    coor2pixel((reg.west, reg.north), reg)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.coor2pixel[1]>", line 1, in <module>
        coor2pixel((reg.west, reg.north), reg)
    NameError: name 'reg' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 170, in grass.pygrass.utils.coor2pixel
Failed example:
    coor2pixel((reg.east, reg.south), reg) == (reg.rows, reg.cols)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.coor2pixel[2]>", line 1, in <module>
        coor2pixel((reg.east, reg.south), reg) == (reg.rows, reg.cols)
    NameError: name 'reg' is not defined


======================================================================
FAIL: get_mapset_raster (grass.pygrass.utils)
Doctest: grass.pygrass.utils.get_mapset_raster
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.get_mapset_raster
  File "etc/python/grass/pygrass/utils.py", line 126, in get_mapset_raster

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 129, in grass.pygrass.utils.get_mapset_raster
Failed example:
    get_mapset_raster('elevation')
Expected:
    'PERMANENT'
Got nothing


======================================================================
FAIL: get_mapset_vector (grass.pygrass.utils)
Doctest: grass.pygrass.utils.get_mapset_vector
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.get_mapset_vector
  File "etc/python/grass/pygrass/utils.py", line 136, in get_mapset_vector

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 139, in grass.pygrass.utils.get_mapset_vector
Failed example:
    get_mapset_vector('census')
Expected:
    'PERMANENT'
Got nothing


======================================================================
FAIL: get_raster_for_points (grass.pygrass.utils)
Doctest: grass.pygrass.utils.get_raster_for_points
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.get_raster_for_points
  File "etc/python/grass/pygrass/utils.py", line 194, in get_raster_for_points

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 204, in grass.pygrass.utils.get_raster_for_points
Failed example:
    sch.open(mode='r')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[5]>", line 1, in <module>
        sch.open(mode='r')
      File "etc/python/grass/pygrass/vector/abstract.py", line 338, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <myschools> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 205, in grass.pygrass.utils.get_raster_for_points
Failed example:
    get_raster_for_points(sch, ele)               # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[6]>", line 1, in <module>
        get_raster_for_points(sch, ele)               # doctest: +ELLIPSIS
      File "etc/python/grass/pygrass/utils.py", line 232, in get_raster_for_points
        poi_vector.open()
      File "etc/python/grass/pygrass/vector/abstract.py", line 338, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <myschools> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 207, in grass.pygrass.utils.get_raster_for_points
Failed example:
    sch.table.columns.add('elevation','double precision')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[7]>", line 1, in <module>
        sch.table.columns.add('elevation','double precision')
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 208, in grass.pygrass.utils.get_raster_for_points
Failed example:
    'elevation' in sch.table.columns
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[8]>", line 1, in <module>
        'elevation' in sch.table.columns
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 210, in grass.pygrass.utils.get_raster_for_points
Failed example:
    get_raster_for_points(sch, ele, 'elevation')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[9]>", line 1, in <module>
        get_raster_for_points(sch, ele, 'elevation')
      File "etc/python/grass/pygrass/utils.py", line 232, in get_raster_for_points
        poi_vector.open()
      File "etc/python/grass/pygrass/vector/abstract.py", line 338, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <myschools> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 212, in grass.pygrass.utils.get_raster_for_points
Failed example:
    sch.table.filters.select('NAMESHORT','elevation')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[10]>", line 1, in <module>
        sch.table.filters.select('NAMESHORT','elevation')
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 214, in grass.pygrass.utils.get_raster_for_points
Failed example:
    cur = sch.table.execute()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[11]>", line 1, in <module>
        cur = sch.table.execute()
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 215, in grass.pygrass.utils.get_raster_for_points
Failed example:
    cur.fetchall()                                # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.get_raster_for_points[12]>", line 1, in <module>
        cur.fetchall()                                # doctest: +ELLIPSIS
    NameError: name 'cur' is not defined


======================================================================
FAIL: getenv (grass.pygrass.utils)
Doctest: grass.pygrass.utils.getenv
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.getenv
  File "etc/python/grass/pygrass/utils.py", line 116, in getenv

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 119, in grass.pygrass.utils.getenv
Failed example:
    getenv("MAPSET")
Expected:
    'user1'
Got:
    '__lib_python_pygrass_test_doctests'


======================================================================
FAIL: is_clean_name (grass.pygrass.utils)
Doctest: grass.pygrass.utils.is_clean_name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.is_clean_name
  File "etc/python/grass/pygrass/utils.py", line 146, in is_clean_name

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 153, in grass.pygrass.utils.is_clean_name
Failed example:
    is_clean_name('census?')
Expected:
    False
Got:
    True


======================================================================
FAIL: pixel2coor (grass.pygrass.utils)
Doctest: grass.pygrass.utils.pixel2coor
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.utils.pixel2coor
  File "etc/python/grass/pygrass/utils.py", line 179, in pixel2coor

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 182, in grass.pygrass.utils.pixel2coor
Failed example:
    reg = Region()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.pixel2coor[0]>", line 1, in <module>
        reg = Region()
    NameError: name 'Region' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 183, in grass.pygrass.utils.pixel2coor
Failed example:
    pixel2coor((0, 0), reg) == (reg.north, reg.west)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.pixel2coor[1]>", line 1, in <module>
        pixel2coor((0, 0), reg) == (reg.north, reg.west)
    NameError: name 'reg' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 185, in grass.pygrass.utils.pixel2coor
Failed example:
    pixel2coor((reg.cols, reg.rows), reg) == (reg.south, reg.east)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest grass.pygrass.utils.pixel2coor[2]>", line 1, in <module>
        pixel2coor((reg.cols, reg.rows), reg) == (reg.south, reg.east)
    NameError: name 'reg' is not defined


----------------------------------------------------------------------
Ran 11 tests in 0.236s
FAILED (failures=7)