❌ 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 | 5 |
Failed tests | 2 |
Percent successful | 71% |
Test duration | 0:01:34.048803 |
... (lines omitted) 2..5..8..11..14..17..20..2..23..5..26..8..29..11..32..14..35..17..38..20..41..23..44..26..47..29..50..32..53..35..56..38..59..41..44..62..47..65..50..68..53..71..56..74..59..77..62..80..65..68..83..71..86..74..89..77..92..80..95..83..86..98..100 89..Aspect raster map <aspect> complete Slope raster map <slope> complete 92..95..98..100 Aspect raster map <aspect> complete Slope raster map <slope> complete .F....F ====================================================================== 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_EPSG', 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 93.135s FAILED (failures=2)