test_raster_region

./lib/python/pygrass/raster – test_raster_region

Test failed

Testtest_raster_region
Testsuite./lib/python/pygrass/raster
Test file./lib/python/pygrass/raster/testsuite/test_raster_region.py
StatusFAILED
Return code1
Number of tests3
Successful tests0
Failed tests3
Percent successful0%
Test duration0:00:01.020317

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:13: 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,
EEE
======================================================================
ERROR: test_resampling_1 (__main__.RasterRowRegionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster_region.py", line 42, in test_resampling_1
    rast.set_region(region)
  File "etc/python/grass/pygrass/raster/abstract.py", line 462, in set_region
    self._set_raster_window(region)
  File "etc/python/grass/pygrass/raster/abstract.py", line 465, in _set_raster_window
    libraster.Rast_set_window(region.byref())
ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head

======================================================================
ERROR: test_resampling_2 (__main__.RasterRowRegionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster_region.py", line 63, in test_resampling_2
    rast.set_region(region)
  File "etc/python/grass/pygrass/raster/abstract.py", line 462, in set_region
    self._set_raster_window(region)
  File "etc/python/grass/pygrass/raster/abstract.py", line 465, in _set_raster_window
    libraster.Rast_set_window(region.byref())
ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head

======================================================================
ERROR: test_resampling_to_numpy (__main__.RasterRowRegionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster_region.py", line 88, in test_resampling_to_numpy
    region.set_raster_region()
  File "etc/python/grass/pygrass/gis/region.py", line 435, in set_raster_region
    libraster.Rast_set_window(self.byref())
ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head

----------------------------------------------------------------------
Ran 3 tests in 0.242s
FAILED (errors=3)