test_doctests stderr

etc/python/grass/lib/gis.py:801: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
.WARNING: <Utils_test_vector> 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
etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
WARNING: <Utils_test_vector> not found
F.WARNING: Illegal filename <c√©nsus>. Character <√> not allowed.

....
======================================================================
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 130, in get_mapset_raster

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 133, in grass.pygrass.utils.get_mapset_raster
Failed example:
    get_mapset_raster(test_raster_name) == getenv("MAPSET")
Expected:
    True
Got:
    False


======================================================================
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 140, in get_mapset_vector

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 143, in grass.pygrass.utils.get_mapset_vector
Failed example:
    get_mapset_vector(test_vector_name) == getenv("MAPSET")
Expected:
    True
Got:
    False


======================================================================
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 200, in get_raster_for_points

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 217, in grass.pygrass.utils.get_raster_for_points
Failed example:
    fire.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[9]>", line 1, in <module>
        fire.open(mode='r')
      File "etc/python/grass/pygrass/vector/abstract.py", line 328, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <test_vect_2> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 218, in grass.pygrass.utils.get_raster_for_points
Failed example:
    l = get_raster_for_points(fire, ele, region=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.get_raster_for_points[10]>", line 1, in <module>
        l = get_raster_for_points(fire, ele, region=region)
      File "etc/python/grass/pygrass/utils.py", line 251, in get_raster_for_points
        poi_vector.open()
      File "etc/python/grass/pygrass/vector/abstract.py", line 328, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <test_vect_2> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 219, in grass.pygrass.utils.get_raster_for_points
Failed example:
    l[0]                                        # 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[11]>", line 1, in <module>
        l[0]                                        # doctest: +ELLIPSIS
    NameError: name 'l' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 221, in grass.pygrass.utils.get_raster_for_points
Failed example:
    l[1]                                        # 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>
        l[1]                                        # doctest: +ELLIPSIS
    NameError: name 'l' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 223, in grass.pygrass.utils.get_raster_for_points
Failed example:
    fire.table.columns.add(test_raster_name,'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[13]>", line 1, in <module>
        fire.table.columns.add(test_raster_name,'double precision')
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 224, in grass.pygrass.utils.get_raster_for_points
Failed example:
    test_raster_name in fire.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[14]>", line 1, in <module>
        test_raster_name in fire.table.columns
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 226, in grass.pygrass.utils.get_raster_for_points
Failed example:
    get_raster_for_points(fire, ele, column=test_raster_name, region=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.get_raster_for_points[15]>", line 1, in <module>
        get_raster_for_points(fire, ele, column=test_raster_name, region=region)
      File "etc/python/grass/pygrass/utils.py", line 251, in get_raster_for_points
        poi_vector.open()
      File "etc/python/grass/pygrass/vector/abstract.py", line 328, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <test_vect_2> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 228, in grass.pygrass.utils.get_raster_for_points
Failed example:
    fire.table.filters.select('name', test_raster_name)
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[16]>", line 1, in <module>
        fire.table.filters.select('name', test_raster_name)
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 230, in grass.pygrass.utils.get_raster_for_points
Failed example:
    cur = fire.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[17]>", line 1, in <module>
        cur = fire.table.execute()
    AttributeError: 'VectorTopo' object has no attribute 'table'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 231, in grass.pygrass.utils.get_raster_for_points
Failed example:
    r = cur.fetchall()
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[18]>", line 1, in <module>
        r = cur.fetchall()
    NameError: name 'cur' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 232, in grass.pygrass.utils.get_raster_for_points
Failed example:
    r[0]                                        # 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[19]>", line 1, in <module>
        r[0]                                        # doctest: +ELLIPSIS
    NameError: name 'r' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 234, in grass.pygrass.utils.get_raster_for_points
Failed example:
    r[1]                                        # 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[20]>", line 1, in <module>
        r[1]                                        # doctest: +ELLIPSIS
    NameError: name 'r' is not defined


----------------------------------------------------------------------
Ran 10 tests in 0.243s
FAILED (failures=3)