❌ 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.346050 |
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..2...2..5..5..2..2..2..5...5..2..2..8..2..5..5..8..8..2..5..11..2..8..8..8..11..11..5..8..5..5..14..5..11..11..2...14..14...11..8..8..17..14..14..17..17..14..11..8..11..11..8..20..17..5..17..20..20..17..14..14..14..23..20..23..20..17..23..20..11..17..17..11..23..26..20..26..23..23..26..20..20..26..23..29..29..26..26..14..29..8..23..14..29..26..32..29..29..32..32..26..29..32..35..32..17..32..35..29..35..32..35..23..17..38..35..35..38..32..35..38..38..26..41..38..20..38..41..11..38..35..41..20..41..44..41..44..41..41..38..44..47..44..23..44..44..29..47..14..47..41..50..23..47..47..47..32..50..50..44..53..50..26..50..35..44..17..50..53..53..56..47..53..26..53..38..47..56..56..59..50..53..56..29..56..41..50..20..59..59..62..53..59..59..29..56..44..65..62..62..56..62..32..62..59..68..47..65..23..65..65..59..65..32..71..68..50..68..68..35..62..53..68..62..74..71..71..53..71..71..26..56..65..65..35..74..74..77..38..74..74..68..56..59..77..68..80..77..77..77..29..71..38..80..62..41..59..80..83..80..71..80..74..83..65..83..62..86..83..83..32..77..74..86..44..41..86..89..68..65..86..86..80..89..92..71..68..77..89..89..35..47..83..92..44..95..74..71..92..80..92..86..89..95..98..95..74..77..50..38..95..100 92..89..98..83..Aspect raster map <aspect> complete 47..98..Slope raster map <slope> complete 80..77..100 98..95..100 Aspect raster map <aspect> complete 92..Slope raster map <slope> complete Aspect raster map <aspect> complete Slope raster map <slope> complete 83..80..100 86..53..98..Aspect raster map <aspect> complete Slope raster map <slope> complete 95..50..100 86..83..Aspect raster map <aspect> complete Slope raster map <slope> complete 41..89..98..56..86..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'] ====================================================================== 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.312s FAILED (failures=3) 100 Aspect raster map <aspect> complete Slope raster map <slope> complete 89..92..89..53..44..59..95..92..95..98..92..56..62..47..100 98..95..100 Aspect raster map <aspect> complete Slope raster map <slope> complete Aspect raster map <aspect> complete Slope raster map <slope> complete 98..65..59..2..50..100 2..Aspect raster map <aspect> complete 5..Slope raster map <slope> complete 2..5..8..68..2..62..11..5..53..8..5..14..8..71..11..17..2..8..2..65..11..20..14..56..74..5..5..11..23..14..17..8..8..26..14..17..68..20..11..77..59..29..11..14..17..20..32..23..17..80..14..23..20..35..