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 tests6
Failed tests1
Percent successful86%
Test duration0:00:01.242381

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:801: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/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: GridModule (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.GridModule
----------------------------------------------------------------------
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.GridModule
  File "etc/python/grass/pygrass/modules/grid/grid.py", line 377, in GridModule

----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 402, in grass.pygrass.modules.grid.grid.GridModule
Failed example:
    grd.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.grid.grid.GridModule[1]>", line 1, in <module>
        grd.run()
      File "etc/python/grass/pygrass/modules/grid/grid.py", line 544, in run
        raise RuntimeError(_("Execution of subprocesses was not successful"))
    RuntimeError: Execution of subprocesses was not successful


----------------------------------------------------------------------
Ran 7 tests in 0.171s
FAILED (failures=1)