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
....FFFFERROR: Raster map <elevation> not found
F.FF.F.FF
======================================================================
FAIL: mapsets (grass.pygrass.gis.Location)
Doctest: grass.pygrass.gis.Location.mapsets
----------------------------------------------------------------------
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.gis.Location.mapsets
  File "etc/python/grass/pygrass/gis/__init__.py", line 224, in mapsets

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 237, in grass.pygrass.gis.Location.mapsets
Failed example:
    sorted(location.mapsets())
Expected:
    ['PERMANENT', 'user1']
Got:
    ['PERMANENT', '__lib_python_pygrass_gis_test_doctests', 'rslopeaspect_000_000', 'rslopeaspect_000_001', 'rslopeaspect_001_000', 'rslopeaspect_001_001', 'rslopeaspect_002_000', 'rslopeaspect_002_001', 'test1', 'test2', 'test3', 'test3d1', 'test3d2', 'test3d3', 'test3d4', 'test4', 'test5', 'test6', 'testvect1', 'testvect2', 'testvect3', 'testvect4', 'user1', 'user2']


======================================================================
FAIL: Mapset (grass.pygrass.gis)
Doctest: grass.pygrass.gis.Mapset
----------------------------------------------------------------------
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.gis.Mapset
  File "etc/python/grass/pygrass/gis/__init__.py", line 254, in Mapset

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 258, in grass.pygrass.gis.Mapset
Failed example:
    mapset
Expected:
    Mapset('user1')
Got:
    Mapset('__lib_python_pygrass_gis_test_doctests')
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 260, in grass.pygrass.gis.Mapset
Failed example:
    mapset.gisdbase                               # doctest: +ELLIPSIS
Expected:
    '/home/...'
Got:
    '/grassdata/tests-grassdata'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 262, in grass.pygrass.gis.Mapset
Failed example:
    mapset.location
Expected:
    'nc_basic_spm_grass7'
Got:
    'piemonte_utm32_wgs84_grass7'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 264, in grass.pygrass.gis.Mapset
Failed example:
    mapset.name
Expected:
    'user1'
Got:
    '__lib_python_pygrass_gis_test_doctests'


======================================================================
FAIL: glist (grass.pygrass.gis.Mapset)
Doctest: grass.pygrass.gis.Mapset.glist
----------------------------------------------------------------------
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.gis.Mapset.glist
  File "etc/python/grass/pygrass/gis/__init__.py", line 308, in glist

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 334, in grass.pygrass.gis.Mapset.glist
Failed example:
    rast                                      # doctest: +ELLIPSIS
Expected:
    ['basins', 'elevation', ...]
Got:
    ['gmted2010', 'gmted2010.shade', 'landsat.blue', 'landsat.green', 'landsat.red', 'lst_2010_01_average_piemonte', 'lst_2010_02_average_piemonte', 'lst_2010_03_average_piemonte', 'lst_2010_04_average_piemonte', 'lst_2010_05_average_piemonte', 'lst_2010_06_average_piemonte', 'lst_2010_07_average_piemonte', 'lst_2010_08_average_piemonte', 'lst_2010_09_average_piemonte', 'lst_2010_10_average_piemonte', 'lst_2010_11_average_piemonte', 'lst_2010_12_average_piemonte', 'orbassano_orto.blue', 'orbassano_orto.green', 'orbassano_orto.red', 'orbassano_orto.rgb', 'srtm', 'srtm_grezzo', 'uso_suolo2007']
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 336, in grass.pygrass.gis.Mapset.glist
Failed example:
    sorted(mapset.glist('rast', pattern='el*'))
Expected:
    ['elevation', 'elevation_shade']
Got:
    []


======================================================================
FAIL: VisibleMapset (grass.pygrass.gis)
Doctest: grass.pygrass.gis.VisibleMapset
----------------------------------------------------------------------
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.gis.VisibleMapset
  File "etc/python/grass/pygrass/gis/__init__.py", line 377, in VisibleMapset

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/__init__.py", line 381, in grass.pygrass.gis.VisibleMapset
Failed example:
    mapset
Expected:
    ['user1', 'PERMANENT']
Got:
    ['user1', 'PERMANENT', 'user2']


======================================================================
FAIL: Region (grass.pygrass.gis.region)
Doctest: grass.pygrass.gis.region.Region
----------------------------------------------------------------------
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.gis.region.Region
  File "etc/python/grass/pygrass/gis/region.py", line 17, in Region

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 27, in grass.pygrass.gis.region.Region
Failed example:
    current.cols
Expected:
    1500
Got:
    828
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 29, in grass.pygrass.gis.region.Region
Failed example:
    current.ewres
Expected:
    10.0
Got:
    250.0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 32, in grass.pygrass.gis.region.Region
Failed example:
    current.ewres
Expected:
    5.0
Got:
    69.0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 35, in grass.pygrass.gis.region.Region
Failed example:
    current.cols
Expected:
    750
Got:
    10350


======================================================================
FAIL: get_bbox (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.get_bbox
----------------------------------------------------------------------
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.gis.region.Region.get_bbox
  File "etc/python/grass/pygrass/gis/region.py", line 347, in get_bbox

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 351, in grass.pygrass.gis.region.Region.get_bbox
Failed example:
    reg.get_bbox()
Expected:
    Bbox(228500.0, 215000.0, 645000.0, 630000.0)
Got:
    Bbox(5147000.0, 4878000.0, 518000.0, 311000.0)


======================================================================
FAIL: items (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.items
----------------------------------------------------------------------
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.gis.region.Region.items
  File "etc/python/grass/pygrass/gis/region.py", line 265, in items

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 269, in grass.pygrass.gis.region.Region.items
Failed example:
    reg.items()                              # doctest: +ELLIPSIS
Expected:
    [(u'proj', 99), ..., (u'cells', 2025000)]
Got:
    [(u'proj', 1), (u'zone', 32), (u'north', 5147000.0), (u'south', 4878000.0), (u'west', 311000.0), (u'east', 518000.0), (u'top', 0.5), (u'bottom', -0.5), (u'nsres', 250.0), (u'ewres', 250.0), (u'tbres', 1.0), (u'rows', 1076), (u'cols', 828), (u'cells', 890928)]


======================================================================
FAIL: proj (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.proj
----------------------------------------------------------------------
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.gis.region.Region.proj
  File "etc/python/grass/pygrass/gis/region.py", line unknown line number, in proj

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line ?, in grass.pygrass.gis.region.Region.proj
Failed example:
    reg.proj
Expected:
    99
Got:
    1


======================================================================
FAIL: vect (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.vect
----------------------------------------------------------------------
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.gis.region.Region.vect
  File "etc/python/grass/pygrass/gis/region.py", line 302, in vect

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 311, in grass.pygrass.gis.region.Region.vect
Failed example:
    reg.vect('census')
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.gis.region.Region.vect[1]>", line 1, in <module>
        reg.vect('census')
      File "etc/python/grass/pygrass/gis/region.py", line 319, in vect
        with VectorTopo(vector_name, mode='r') as vect:
      File "etc/python/grass/pygrass/vector/abstract.py", line 95, in __enter__
        self.open(*self._aopen, **self._kwopen)
      File "etc/python/grass/pygrass/vector/abstract.py", line 338, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <census> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 312, in grass.pygrass.gis.region.Region.vect
Failed example:
    reg.get_bbox()
Expected:
    Bbox(230963.640878, 212125.562878, 645837.437393, 628769.374393)
Got:
    Bbox(5147000.0, 4878000.0, 518000.0, 311000.0)


======================================================================
FAIL: zone (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.zone
----------------------------------------------------------------------
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.gis.region.Region.zone
  File "etc/python/grass/pygrass/gis/region.py", line unknown line number, in zone

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line ?, in grass.pygrass.gis.region.Region.zone
Failed example:
    reg.zone
Expected:
    0
Got:
    32


----------------------------------------------------------------------
Ran 17 tests in 0.081s
FAILED (failures=10)