test_doctests

./lib/python/pygrass/raster – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass/raster
Test file./lib/python/pygrass/raster/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests12
Successful tests11
Failed tests1
Percent successful92%
Test duration0:00:01.103888

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: 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:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from .mtrand import *
etc/python/grass/pygrass/raster/history.py:14: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
F..etc/python/grass/pygrass/raster/segment.py:30: DeprecationWarning: classic int division
  return ((rows + self.srows - 1) / self.srows) * \
etc/python/grass/pygrass/raster/segment.py:31: DeprecationWarning: classic int division
  ((cols + self.scols - 1) / self.scols)
.........
======================================================================
FAIL: RasterRow (grass.pygrass.raster)
Doctest: grass.pygrass.raster.RasterRow
----------------------------------------------------------------------
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.raster.RasterRow
  File "etc/python/grass/pygrass/raster/__init__.py", line 39, in RasterRow

----------------------------------------------------------------------
File "etc/python/grass/pygrass/raster/__init__.py", line 87, in grass.pygrass.raster.RasterRow
Failed example:
    elev.hist.title
Expected:
    'A test map'
Got:
    u'A test map'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/raster/__init__.py", line 89, in grass.pygrass.raster.RasterRow
Failed example:
    elev.hist.keyword
Expected:
    'This is a test map'
Got:
    u'This is a test map'


----------------------------------------------------------------------
Ran 12 tests in 0.070s
FAILED (failures=1)