❌ Test failed
Test | test_raster_img |
Testsuite | ./lib/python/pygrass/raster |
Test file | ./lib/python/pygrass/raster/testsuite/test_raster_img.py |
Status | FAILED |
Return code | 1 |
Number of tests | 9 |
Successful tests | 0 |
Failed tests | 9 |
Percent successful | 0% |
Test duration | 0:00:01.190000 |
/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, EEEEEEEEE ====================================================================== ERROR: test_resampling_to_QImg_1 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 46, in test_resampling_to_QImg_1 region.from_rast(self.name) File "etc/python/grass/pygrass/gis/region.py", line 424, in from_rast self.byref()) ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head ====================================================================== ERROR: test_resampling_to_QImg_2 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 66, in test_resampling_to_QImg_2 region.from_rast(self.name) File "etc/python/grass/pygrass/gis/region.py", line 424, in from_rast self.byref()) ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head ====================================================================== ERROR: test_resampling_to_QImg_3 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 114, in test_resampling_to_QImg_3 region.from_rast(self.name) File "etc/python/grass/pygrass/gis/region.py", line 424, in from_rast self.byref()) ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head ====================================================================== ERROR: test_resampling_to_QImg_4 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 138, in test_resampling_to_QImg_4 region.from_rast(self.name) File "etc/python/grass/pygrass/gis/region.py", line 424, in from_rast self.byref()) ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head ====================================================================== ERROR: test_resampling_to_QImg_large (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 90, in test_resampling_to_QImg_large region.from_rast(self.name) File "etc/python/grass/pygrass/gis/region.py", line 424, in from_rast self.byref()) ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected LP_struct_Cell_head instance instead of LP_struct_Cell_head ====================================================================== ERROR: test_resampling_to_numpy_img_1 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 162, in test_resampling_to_numpy_img_1 a = raster2numpy_img(self.name, region) File "etc/python/grass/pygrass/raster/__init__.py", line 662, in raster2numpy_img 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 ====================================================================== ERROR: test_resampling_to_numpy_img_2 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 173, in test_resampling_to_numpy_img_2 a = raster2numpy_img(self.name, region) File "etc/python/grass/pygrass/raster/__init__.py", line 662, in raster2numpy_img 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 ====================================================================== ERROR: test_resampling_to_numpy_img_3 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 184, in test_resampling_to_numpy_img_3 a = raster2numpy_img(self.name, region, color="GRAY1") File "etc/python/grass/pygrass/raster/__init__.py", line 662, in raster2numpy_img 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 ====================================================================== ERROR: test_resampling_to_numpy_img_4 (__main__.RasterRowImgTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "lib/python/pygrass/raster/testsuite/test_raster_img.py", line 195, in test_resampling_to_numpy_img_4 a = raster2numpy_img(self.name, region, color="GRAY2") File "etc/python/grass/pygrass/raster/__init__.py", line 662, in raster2numpy_img 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 9 tests in 0.420s FAILED (errors=9)