❌ Test failed
Test | test_pygrass_modules_doctests |
Testsuite | ./lib/python/pygrass/modules |
Test file | ./lib/python/pygrass/modules/testsuite/test_pygrass_modules_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 7 |
Successful tests | 4 |
Failed tests | 3 |
Percent successful | 57% |
Test duration | 0:00:01.122312 |
/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, ERROR: Raster map <elevation> not found FF....F ====================================================================== FAIL: GridModule (grass.pygrass.modules.grid.grid) Doctest: grass.pygrass.modules.grid.grid.GridModule ---------------------------------------------------------------------- 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.modules.grid.grid.GridModule File "etc/python/grass/pygrass/modules/grid/grid.py", line 380, in GridModule ---------------------------------------------------------------------- File "etc/python/grass/pygrass/modules/grid/grid.py", line 407, in grass.pygrass.modules.grid.grid.GridModule Failed example: grd.run() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest grass.pygrass.modules.grid.grid.GridModule[1]>", line 1, in <module> grd.run() File "etc/python/grass/pygrass/modules/grid/grid.py", line 568, in run self.patch() File "etc/python/grass/pygrass/modules/grid/grid.py", line 609, in patch self.start_row, self.start_col, self.out_prefix) File "etc/python/grass/pygrass/modules/grid/patch.py", line 79, in rpatch_map rtype.open('r') File "etc/python/grass/pygrass/raster/__init__.py", line 210, in open raise OpenError(str_err) OpenError: The map does not exist, I can't open in 'r' mode ====================================================================== FAIL: copy_mapset (grass.pygrass.modules.grid.grid) Doctest: grass.pygrass.modules.grid.grid.copy_mapset ---------------------------------------------------------------------- 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.modules.grid.grid.copy_mapset File "etc/python/grass/pygrass/modules/grid/grid.py", line 63, in copy_mapset ---------------------------------------------------------------------- File "etc/python/grass/pygrass/modules/grid/grid.py", line 85, in grass.pygrass.modules.grid.grid.copy_mapset Failed example: sorted(os.listdir(os.path.join(path, 'PERMANENT'))) Expected: [u'DEFAULT_WIND', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND'] Got: [u'DEFAULT_WIND', u'MYNAME', u'WIND'] ====================================================================== FAIL: MetaModule (grass.pygrass.modules.shortcuts) Doctest: grass.pygrass.modules.shortcuts.MetaModule ---------------------------------------------------------------------- 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.modules.shortcuts.MetaModule File "etc/python/grass/pygrass/modules/shortcuts.py", line 14, in MetaModule ---------------------------------------------------------------------- File "etc/python/grass/pygrass/modules/shortcuts.py", line 28, in grass.pygrass.modules.shortcuts.MetaModule Failed example: g_list.outputs.stdout # doctest: +ELLIPSIS Expected: u'...basin...elevation...' Got: u'' ---------------------------------------------------------------------- Ran 7 tests in 0.374s FAILED (failures=3)