test_raster

./lib/python/pygrass/raster – test_raster

Test failed

Test filetest_raster
Testsuite./lib/python/pygrass/raster
StatusFAILED
Return code1
Number of tests6
Successful tests0
Failed tests6
Percent successful0%
Test duration0:00:01.162801

Supplementary files

Standard error output (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
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
WARNING: <elevation> not found
FEEEFE
======================================================================
ERROR: test_isopen (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 35, in test_isopen
    r.open(mode='r')
  File "etc/python/grass/pygrass/raster/__init__.py", line 181, in open
    raise OpenError(str_err)
OpenError: The map does not exist, I can't open in 'r' mode

======================================================================
ERROR: test_name (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 42, in test_name
    r.open(mode='r')
  File "etc/python/grass/pygrass/raster/__init__.py", line 181, in open
    raise OpenError(str_err)
OpenError: The map does not exist, I can't open in 'r' mode

======================================================================
ERROR: test_open_r (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 60, in test_open_r
    r.open(mode='r', mtype='DCELL')
  File "etc/python/grass/pygrass/raster/__init__.py", line 181, in open
    raise OpenError(str_err)
OpenError: The map does not exist, I can't open in 'r' mode

======================================================================
ERROR: test_type (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 28, in test_type
    r.open(mode='r')
  File "etc/python/grass/pygrass/raster/__init__.py", line 181, in open
    raise OpenError(str_err)
OpenError: The map does not exist, I can't open in 'r' mode

======================================================================
FAIL: test_exist (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 52, in test_exist
    self.assertTrue(exist.exist())
AssertionError: False is not true

======================================================================
FAIL: test_open_w (__main__.RasterRowTestCate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/raster/testsuite/test_raster.py", line 69, in test_open_w
    r.open(mode='w')
AssertionError: OpenError not raised

----------------------------------------------------------------------
Ran 6 tests in 0.109s
FAILED (failures=2, errors=4)