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

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,
2..2..2..2..5..5..5..2..8..5..8..11..8..11..8..14..5..11..14..17..11..17..20..14..14..8..23..20..17..17..26..23..11..20..29..20..26..32..23..23..29..35..14..26..32..26..38..41..35..29..17..29..44..38..32..32..47..41..20..50..35..35..44..53..38..38..47..23..56..41..50..41..59..62..53..44..44..26..65..56..47..47..68..59..29..71..50..50..62..74..53..53..65..32..77..56..56..80..68..83..71..35..59..59..86..74..62..62..89..38..77..92..65..65..95..80..68..68..41..98..83..100
71..71..86..Aspect raster map <aspect> complete
44..Slope raster map <slope> complete
74..74..89..92..77..77..47..95..80..80..98..83..50..83..100
86..86..Aspect raster map <aspect> complete
Slope raster map <slope> complete
53..89..89..92..92..56..95..95..98..59..98..100
100
Aspect raster map <aspect> complete
62..Slope raster map <slope> complete
Aspect raster map <aspect> complete
Slope raster map <slope> complete
65..68..71..74..77..80..83..86..89..92..95..98..100
Aspect raster map <aspect> complete
Slope raster map <slope> complete
FF.....
======================================================================
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 379, in GridModule

----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 406, 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 553, in run
        raise RuntimeError(_("Execution of subprocesses was not successful"))
    RuntimeError: Execution of subprocesses was not successful


======================================================================
FAIL: copy_mapset (grass.pygrass.modules.grid.grid)
Doctest: grass.pygrass.modules.grid.grid.copy_mapset
----------------------------------------------------------------------
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.copy_mapset
  File "etc/python/grass/pygrass/modules/grid/grid.py", line 63, in copy_mapset

----------------------------------------------------------------------
File "etc/python/grass/pygrass/modules/grid/grid.py", line 85, in grass.pygrass.modules.grid.grid.copy_mapset
Failed example:
    sorted(os.listdir(os.path.join(path, 'PERMANENT')))
Expected:
    [u'DEFAULT_WIND', u'PROJ_EPSG', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND']
Got:
    [u'DEFAULT_WIND', u'PROJ_INFO', u'PROJ_UNITS', u'VAR', u'WIND']


----------------------------------------------------------------------
Ran 7 tests in 0.366s
FAILED (failures=2)