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 tests2
Failed tests5
Percent successful29%
Test duration0:00:01.130676

Supplementary files

Standard error output (stderr)

... (lines omitted)
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
        raise ValueError(msg % (param.name, type(value), value))
    ValueError: The Parameter <mapset> require a string, <type 'unicode'> instead is provided: u'PERMANENT'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 26, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
    g_list.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.shortcuts.MetaModule[7]>", line 1, in <module>
        g_list.run()
      File "etc/python/grass/pygrass/modules/interface/module.py", line 713, in run
        module=self.name, errors=stderr)
      File "etc/python/grass/exceptions/__init__.py", line 68, in __init__
        msg = _("Module run %s %s ended with error") % (module, code)
    TypeError: 'list' object is not callable
----------------------------------------------------------------------
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:
    u''
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/shortcuts.py", line 34, in grass.pygrass.modules.shortcuts.MetaModule
Failed example:
    what.inputs.map = 'elevation'
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.shortcuts.MetaModule[12]>", line 1, in <module>
        what.inputs.map = 'elevation'
      File "etc/python/grass/pygrass/modules/interface/typedict.py", line 30, in __setattr__
        self[key].value = value
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
        self._value, self._rawvalue = _check_value(self, value)
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
        check_string(value)
      File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
        raise ValueError(msg % (param.name, type(value), value))
    ValueError: The Parameter <map> require a string, <type 'unicode'> instead is provided: u'elevation'


----------------------------------------------------------------------
Ran 7 tests in 0.158s
FAILED (failures=5)