❌ Test failed
Test | test_doctests |
Testsuite | ./lib/python/pygrass/modules |
Test file | ./lib/python/pygrass/modules/testsuite/test_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.242081 |
etc/python/grass/lib/gis.py:801: 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 etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x class History(object): /usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, FF2..5...2..2..5..2..5..5..8..2..2..2..8...11..8..8..2..5..2..11..11..14..11..5..2..14..8..5..14..14..2...5..5..17..5..11..17..20..8..5..8..8..20..8..14..20..23..8..11..11..23..8..23..17..11..11..26..17..14..11..26..20..14..2..29..20..17..29..11..17..23..32..14..20..32..14..20..14..26..26..35..23..35..23..17..29..14..29..38..17..5..38..23..26..26..17..20..32..8..41..26..29..29..23..17..20..35..11..44..29..32..20..32..26..47..38..32..41..35..14..29..35..23..50..20..41..38..44..23..17..32..53..38..41..44..32..20..35..56..44..23..47..41..35..23..26..38..59..26..47..50..35..44..47..26..41..62..50..38..26..53..47..50..29..29..65..44..53..41..56..32..50..68..38..56..47..29..59..35..71..41..32..59..50..53..29..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 379, in GridModule ---------------------------------------------------------------------- File "etc/python/grass/pygrass/modules/grid/grid.py", line 404, 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 546, in run raise RuntimeError(_("Execution of subprocesses was not successful")) RuntimeError: Execution of subprocesses was not successful ====================================================================== 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'CURGROUP', u'DEFAULT_WIND', u'MYNAME', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND'] ====================================================================== 62..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: '...basin...soils...' Got: 'basins\nelevation\ngeology\nlakes\nlandsat.blue\nlandsat.green\nlandsat.red\nlanduse\northophoto.blue\northophoto.green\northophoto.red\northophoto.rgb\n' ---------------------------------------------------------------------- Ran 7 tests in 0.224s FAILED (failures=3) 74..44..62..53..53..56..38..44..32..65..77..65..35..56..56..68..47..80..32..59..68..59..83..47..71..50..59..35..71..62..86..50..62..74..62..53..74..35..65..89..53..41..77..65..65..38..56..68..92..44..80..59..68..38..68..38..95..71..47..83..41..77..62..71..98..74..71..86..56..100 74..65..Aspect raster map <aspect> complete 41..Slope raster map <slope> complete 77..44..74..89..59..68..77..80..77..92..62..80..47..44..83..80..50..95..83..74..86..83..80..53..98..86..50..77..47..100 89..86..83..56..Aspect raster map <aspect> complete Slope raster map <slope> complete 89..80..92..89..86..59..92..53..95..83..