test_doctests stderr

etc/python/grass/lib/gis.py:803: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
/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: <census> not found
WARNING: vector <mycensus> not found
...FFWARNING: <schools> not found
FFWARNING: Illegal filename <cénsus>. Character <Ã> not allowed.
F...
======================================================================
FAIL: get_mapset_raster (grass.pygrass.functions)
Doctest: grass.pygrass.functions.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.functions.get_mapset_raster
  File "etc/python/grass/pygrass/functions.py", line 131, in get_mapset_raster

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


======================================================================
FAIL: get_mapset_vector (grass.pygrass.functions)
Doctest: grass.pygrass.functions.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.functions.get_mapset_vector
  File "etc/python/grass/pygrass/functions.py", line 141, in get_mapset_vector

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


======================================================================
FAIL: get_raster_for_points (grass.pygrass.functions)
Doctest: grass.pygrass.functions.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.functions.get_raster_for_points
  File "etc/python/grass/pygrass/functions.py", line 199, in get_raster_for_points

----------------------------------------------------------------------
File "etc/python/grass/pygrass/functions.py", line 209, in grass.pygrass.functions.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.functions.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/functions.py", line 210, in grass.pygrass.functions.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.functions.get_raster_for_points[6]>", line 1, in <module>
        get_raster_for_points(sch, ele)               # doctest: +ELLIPSIS
      File "etc/python/grass/pygrass/functions.py", line 235, 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/functions.py", line 212, in grass.pygrass.functions.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.functions.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/functions.py", line 213, in grass.pygrass.functions.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.functions.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/functions.py", line 215, in grass.pygrass.functions.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.functions.get_raster_for_points[9]>", line 1, in <module>
        get_raster_for_points(sch, ele, 'elevation')
      File "etc/python/grass/pygrass/functions.py", line 235, 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/functions.py", line 217, in grass.pygrass.functions.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.functions.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/functions.py", line 219, in grass.pygrass.functions.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.functions.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/functions.py", line 220, in grass.pygrass.functions.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.functions.get_raster_for_points[12]>", line 1, in <module>
        cur.fetchall()                                # doctest: +ELLIPSIS
    NameError: name 'cur' is not defined


======================================================================
FAIL: getenv (grass.pygrass.functions)
Doctest: grass.pygrass.functions.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.functions.getenv
  File "etc/python/grass/pygrass/functions.py", line 121, in getenv

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


======================================================================
FAIL: is_clean_name (grass.pygrass.functions)
Doctest: grass.pygrass.functions.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.functions.is_clean_name
  File "etc/python/grass/pygrass/functions.py", line 151, in is_clean_name

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


----------------------------------------------------------------------
Ran 12 tests in 0.147s
FAILED (failures=5)