❌ Test failed
Test | test_pygrass_raster_doctests |
Testsuite | ./lib/python/pygrass/raster |
Test file | ./lib/python/pygrass/raster/testsuite/test_pygrass_raster_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 12 |
Successful tests | 11 |
Failed tests | 1 |
Percent successful | 92% |
Test duration | 0:00:01.262433 |
/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.081s
FAILED (failures=1)