test_doctests

./lib/python/gunittest – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/gunittest
Test file./lib/python/gunittest/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests11
Successful tests10
Failed tests1
Percent successful91%
Test duration0:00:01.066755

Supplementary files

Standard error output (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,
.F.........
======================================================================
FAIL: call_module (grass.gunittest.gmodules)
Doctest: grass.gunittest.gmodules.call_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.gunittest.gmodules.call_module
  File "etc/python/grass/gunittest/gmodules.py", line 59, in call_module

----------------------------------------------------------------------
File "etc/python/grass/gunittest/gmodules.py", line 68, in grass.gunittest.gmodules.call_module
Failed example:
    call_module('m.proj', flags='i', input='-', stdin="50.0 41.5")
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.gunittest.gmodules.call_module[1]>", line 1, in <module>
        call_module('m.proj', flags='i', input='-', stdin="50.0 41.5")
      File "etc/python/grass/gunittest/gmodules.py", line 131, in call_module
        raise CalledModuleError(returncode, module, kwargs, errors)
    CalledModuleError: Module run 1 m.proj ended with error
    Process ended with non-zero return code {'input': '-', 'stdin': -1, 'flags': 'i', 'stderr': -1, 'stdout': -1}. See the following errors:
    Traceback (most recent call last):
      File "scripts/m.proj", line 303, in <module>
        main()
      File "scripts/m.proj", line 135, in main
        if not grass.find_program('cs2cs'):
    NameError: global name 'grass' is not defined



----------------------------------------------------------------------
Ran 11 tests in 0.239s
FAILED (failures=1)