test_doctests

./lib/python/pygrass/modules – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass/modules
Test file./lib/python/pygrass/modules/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests7
Successful tests4
Failed tests3
Percent successful57%
Test duration0:00:39.805723

Supplementary files

Standard error output (stderr)

... (lines omitted)
      File "etc/python/grass/pygrass/modules/grid/patch.py", line 89, in rpatch_map
        rrasts[-1].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_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 38.644s
FAILED (failures=3)