test_doctests

./lib/python/pygrass/modules/interface – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass/modules/interface
Test file./lib/python/pygrass/modules/interface/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests8
Successful tests7
Failed tests1
Percent successful88%
Test duration0:00:01.966102

Supplementary files

Standard error output (stderr)

... (lines omitted)
    NameError: name 'colors' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/interface/module.py", line 420, 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 422, 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 424, 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 426, 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


----------------------------------------------------------------------
Ran 8 tests in 0.802s
FAILED (failures=1)