test_doctests stderr

.../usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FF...
======================================================================
FAIL: Module (grass.pygrass.modules.interface.module)
Doctest: grass.pygrass.modules.interface.module.Module
----------------------------------------------------------------------
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.interface.module.Module
  File "etc/python/grass/pygrass/modules/interface/module.py", line 266, in Module

----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 284, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_region.inputs.res = "10"
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.interface.module.Module[9]>", line 1, in <module>
        new_region.inputs.res = "10"
      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 <res> require a string, <type 'unicode'> instead is provided: u'10'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 285, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_region.get_bash()
Expected:
    u'g.region res=10 -p -3 -u'
Got:
    u'g.region -p -3 -u'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 289, in grass.pygrass.modules.interface.module.Module
Failed example:
    neighbors.inputs.input = "mapA"
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.interface.module.Module[12]>", line 1, in <module>
        neighbors.inputs.input = "mapA"
      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 <input> require a string, <type 'unicode'> instead is provided: u'mapA'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 290, in grass.pygrass.modules.interface.module.Module
Failed example:
    neighbors.outputs.output = "mapB"
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.interface.module.Module[13]>", line 1, in <module>
        neighbors.outputs.output = "mapB"
      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 <output> require a string, <type 'unicode'> instead is provided: u'mapB'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 293, in grass.pygrass.modules.interface.module.Module
Failed example:
    neighbors.get_bash()
Expected:
    u'r.neighbors input=mapA method=average size=5 quantile=0.5 output=mapB'
Got:
    u'r.neighbors method=average size=5 quantile=0.5'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 297, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors1.inputs.input = "mapD"
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.interface.module.Module[18]>", line 1, in <module>
        new_neighbors1.inputs.input = "mapD"
      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 <input> require a string, <type 'unicode'> instead is provided: u'mapD'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 300, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors1.get_bash()
Expected:
    u'r.neighbors input=mapD method=average size=3 quantile=0.5 output=mapB'
Got:
    u'r.neighbors method=average size=3 quantile=0.5'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 304, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors2(input="mapD", size=3, run_=False)
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.interface.module.Module[23]>", line 1, in <module>
        new_neighbors2(input="mapD", size=3, run_=False)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <input> require a string, <type 'unicode'> instead is provided: u'mapD'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 306, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors2.get_bash()
Expected:
    u'r.neighbors input=mapD method=average size=3 quantile=0.5 output=mapB'
Got:
    u'r.neighbors method=average size=5 quantile=0.5'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 314, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors3(input="mapA", size=3, output="mapB", run_=False)
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.interface.module.Module[28]>", line 1, in <module>
        new_neighbors3(input="mapA", size=3, output="mapB", run_=False)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 566, in __call__
        self.outputs[key].value = val
      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 <output> require a string, <type 'unicode'> instead is provided: u'mapB'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 316, in grass.pygrass.modules.interface.module.Module
Failed example:
    new_neighbors3.get_bash()
Expected:
    u'r.neighbors input=mapA method=average size=3 output=mapB'
Got:
    u'r.neighbors method=average size=3'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 319, in grass.pygrass.modules.interface.module.Module
Failed example:
    mapcalc = Module("r.mapcalc", expression="test_a = 1",
                     overwrite=True, run_=False)
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.interface.module.Module[30]>", line 2, in <module>
        overwrite=True, run_=False)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
        self.__call__(*args, **kargs)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_a = 1'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 321, in grass.pygrass.modules.interface.module.Module
Failed example:
    mapcalc.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.interface.module.Module[31]>", line 1, in <module>
        mapcalc.run()
    NameError: name 'mapcalc' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 323, in grass.pygrass.modules.interface.module.Module
Failed example:
    mapcalc.popen.returncode
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.interface.module.Module[32]>", line 1, in <module>
        mapcalc.popen.returncode
    NameError: name 'mapcalc' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 326, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors = Module("r.colors", map="test_a", rules="-",
                    run_=False, stdout_=PIPE,
                    stderr_=PIPE, stdin_="1 red")
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.interface.module.Module[33]>", line 3, in <module>
        stderr_=PIPE, stdin_="1 red")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
        self.__call__(*args, **kargs)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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'test_a'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 329, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[34]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 331, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.popen.returncode
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.interface.module.Module[35]>", line 1, in <module>
        colors.popen.returncode
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 333, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.inputs["stdin"].value
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.interface.module.Module[36]>", line 1, in <module>
        colors.inputs["stdin"].value
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 335, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.outputs["stdout"].value
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.interface.module.Module[37]>", line 1, in <module>
        colors.outputs["stdout"].value
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 337, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.outputs["stderr"].value.strip()
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.interface.module.Module[38]>", line 1, in <module>
        colors.outputs["stderr"].value.strip()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 340, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors = Module("r.colors", map="test_a", rules="-",
                    run_=False, finish_=False, stdin_=PIPE)
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.interface.module.Module[39]>", line 2, in <module>
        run_=False, finish_=False, stdin_=PIPE)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
        self.__call__(*args, **kargs)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <rules> require a string, <type 'unicode'> instead is provided: u'-'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 342, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[40]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 344, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout, stderr = colors.popen.communicate(input="1 red")
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.interface.module.Module[41]>", line 1, in <module>
        stdout, stderr = colors.popen.communicate(input="1 red")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 345, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.popen.returncode
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.interface.module.Module[42]>", line 1, in <module>
        colors.popen.returncode
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 347, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout
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.interface.module.Module[43]>", line 1, in <module>
        stdout
    NameError: name 'stdout' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 348, in grass.pygrass.modules.interface.module.Module
Failed example:
    stderr
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.interface.module.Module[44]>", line 1, in <module>
        stderr
    NameError: name 'stderr' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 350, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors = Module("r.colors", map="test_a", rules="-",
                    run_=False, finish_=False,
                    stdin_=PIPE, stderr_=PIPE)
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.interface.module.Module[45]>", line 3, in <module>
        stdin_=PIPE, stderr_=PIPE)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
        self.__call__(*args, **kargs)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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'test_a'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 353, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[46]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 355, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout, stderr = colors.popen.communicate(input="1 red")
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.interface.module.Module[47]>", line 1, in <module>
        stdout, stderr = colors.popen.communicate(input="1 red")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 356, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.popen.returncode
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.interface.module.Module[48]>", line 1, in <module>
        colors.popen.returncode
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 358, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout
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.interface.module.Module[49]>", line 1, in <module>
        stdout
    NameError: name 'stdout' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 359, in grass.pygrass.modules.interface.module.Module
Failed example:
    stderr.strip()
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.interface.module.Module[50]>", line 1, in <module>
        stderr.strip()
    NameError: name 'stderr' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 363, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[51]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 365, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout, stderr = colors.popen.communicate(input="1 blue")
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.interface.module.Module[52]>", line 1, in <module>
        stdout, stderr = colors.popen.communicate(input="1 blue")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 366, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.popen.returncode
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.interface.module.Module[53]>", line 1, in <module>
        colors.popen.returncode
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 368, in grass.pygrass.modules.interface.module.Module
Failed example:
    stdout
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.interface.module.Module[54]>", line 1, in <module>
        stdout
    NameError: name 'stdout' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 369, in grass.pygrass.modules.interface.module.Module
Failed example:
    stderr.strip()
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.interface.module.Module[55]>", line 1, in <module>
        stderr.strip()
    NameError: name 'stderr' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 373, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors = Module("r.colors", map="test_a",
                                               color="ryb", run_=False)
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.interface.module.Module[56]>", line 2, in <module>
        color="ryb", run_=False)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 526, in __init__
        self.__call__(*args, **kargs)
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <color> require a string, <type 'unicode'> instead is provided: u'ryb'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 375, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[57]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 377, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors(color="gyr")
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.interface.module.Module[58]>", line 1, in <module>
        colors(color="gyr")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 379, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[59]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 381, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors(color="ryg")
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.interface.module.Module[60]>", line 1, in <module>
        colors(color="ryg")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 383, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors(stderr_=PIPE)
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.interface.module.Module[61]>", line 1, in <module>
        colors(stderr_=PIPE)
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 385, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[62]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 387, in grass.pygrass.modules.interface.module.Module
Failed example:
    print(colors.outputs["stderr"].value.strip())
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.interface.module.Module[63]>", line 1, in <module>
        print(colors.outputs["stderr"].value.strip())
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 389, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors(color="byg")
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.interface.module.Module[64]>", line 1, in <module>
        colors(color="byg")
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 391, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors(stdout_=PIPE)
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.interface.module.Module[65]>", line 1, in <module>
        colors(stdout_=PIPE)
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 393, in grass.pygrass.modules.interface.module.Module
Failed example:
    colors.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.interface.module.Module[66]>", line 1, in <module>
        colors.run()
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 395, in grass.pygrass.modules.interface.module.Module
Failed example:
    print(colors.outputs["stderr"].value.strip())
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.interface.module.Module[67]>", line 1, in <module>
        print(colors.outputs["stderr"].value.strip())
    NameError: name 'colors' is not defined


======================================================================
FAIL: ParallelModuleQueue (grass.pygrass.modules.interface.module)
Doctest: grass.pygrass.modules.interface.module.ParallelModuleQueue
----------------------------------------------------------------------
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.interface.module.ParallelModuleQueue
  File "etc/python/grass/pygrass/modules/interface/module.py", line 30, in ParallelModuleQueue

----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 58, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for i in xrange(5):
        new_mapcalc = copy.deepcopy(mapcalc)
        mapcalc_list.append(new_mapcalc)
        m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
        queue.put(m)
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.interface.module.ParallelModuleQueue[5]>", line 4, in <module>
        m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_0 = 0'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 68, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for mapcalc in mapcalc_list:
        print(mapcalc.popen.returncode)
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.interface.module.ParallelModuleQueue[9]>", line 2, in <module>
        print(mapcalc.popen.returncode)
    AttributeError: 'NoneType' object has no attribute 'returncode'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 80, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for i in xrange(5):
        new_mapcalc = copy.deepcopy(mapcalc)
        mapcalc_list.append(new_mapcalc)
        m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
        queue.put(m)
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.interface.module.ParallelModuleQueue[12]>", line 4, in <module>
        m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_0 = 0'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 90, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for mapcalc in mapcalc_list:
        print(mapcalc.popen.returncode)
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.interface.module.ParallelModuleQueue[16]>", line 2, in <module>
        print(mapcalc.popen.returncode)
    AttributeError: 'NoneType' object has no attribute 'returncode'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 104, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_1 =1")
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.interface.module.ParallelModuleQueue[21]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_1 =1")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_1 =1'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 105, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[22]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 106, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    1
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 110, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_2 =2")
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.interface.module.ParallelModuleQueue[26]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_2 =2")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_2 =2'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 111, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[27]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 112, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    2
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 116, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_3 =3")
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.interface.module.ParallelModuleQueue[31]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_3 =3")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_3 =3'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 117, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[32]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 118, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    3
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 122, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_4 =4")
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.interface.module.ParallelModuleQueue[36]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_4 =4")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_4 =4'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 123, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[37]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 124, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    4
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 131, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for mapcalc in mapcalc_list:
        print(mapcalc.popen.returncode)
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.interface.module.ParallelModuleQueue[42]>", line 2, in <module>
        print(mapcalc.popen.returncode)
    AttributeError: 'NoneType' object has no attribute 'returncode'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 144, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_1 =1")
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.interface.module.ParallelModuleQueue[47]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_1 =1")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_1 =1'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 145, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[48]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 146, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    1
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 150, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_2 =2")
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.interface.module.ParallelModuleQueue[52]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_2 =2")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_2 =2'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 151, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[53]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 152, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    2
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 156, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_3 =3")
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.interface.module.ParallelModuleQueue[57]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_3 =3")
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_3 =3'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 157, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m) # Now it will wait until all procs finish and set the counter back to 0
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.interface.module.ParallelModuleQueue[58]>", line 1, in <module>
        queue.put(m) # Now it will wait until all procs finish and set the counter back to 0
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 162, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
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.interface.module.ParallelModuleQueue[62]>", line 1, in <module>
        m = new_mapcalc(expression="test_pygrass_%i = %i"%(i, i))
      File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
        self.inputs[key].value = val
      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 <expression> require a string, <type 'unicode'> instead is provided: u'test_pygrass_0 = 0'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 163, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.put(m)
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.interface.module.ParallelModuleQueue[63]>", line 1, in <module>
        queue.put(m)
    NameError: name 'm' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 164, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    queue.get_num_run_procs()
Expected:
    1
Got:
    0
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 171, in grass.pygrass.modules.interface.module.ParallelModuleQueue
Failed example:
    for mapcalc in mapcalc_list:
        print(mapcalc.popen.returncode)
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.interface.module.ParallelModuleQueue[68]>", line 2, in <module>
        print(mapcalc.popen.returncode)
    AttributeError: 'NoneType' object has no attribute 'returncode'


----------------------------------------------------------------------
Ran 8 tests in 0.175s
FAILED (failures=2)