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:02.849900

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: 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:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from .mtrand import *
etc/python/grass/pygrass/raster/history.py:13: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
2..2..2..2..2..5..5..5..2..8..5..8..8..5..2..5..11..11..11..8..8..8..14..14..14..11..11..17..11..17..14..17..20..14..5..2..17..14..23..20..20..17..8..5..20..26..2..17..23..23..23..11..20..29..8..5..20..26..14..32..26..8..26..23..11..35..23..11..17..29..29..29..26..38..14..14..32..26..20..32..41..32..17..29..35..17..29..44..23..20..35..35..32..20..47..23..32..26..38..50..38..35..26..23..38..35..53..41..29..29..41..38..26..41..56..38..32..44..44..32..44..41..59..29..35..41..47..47..62..35..38..47..44..32..50..44..65..38..41..50..50..53..47..35..68..44..41..47..56..53..71..47..53..50..44..38..50..74..50..59..56..47..56..53..41..77..53..62..53..59..50..59..80..56..65..56..44..56..59..83..62..53..62..59..47..86..62..59..65..56..62..65..65..68..50..89..62..68..92..68..65..59..68..53..71..65..95..71..71..71..62..74..56..68..98..68..74..100
74..77..74..65..Aspect raster map <aspect> complete
77..59..71..Slope raster map <slope> complete
71..80..68..80..77..77..62..74..83..74..71..83..80..86..80..65..77..86..74..89..77..83..83..92..89..77..68..80..80..95..92..86..80..86..71..83..98..95..83..83..100
89..89..98..74..Aspect raster map <aspect> complete
86..Slope raster map <slope> complete
86..100
86..92..Aspect raster map <aspect> complete
92..Slope raster map <slope> complete
77..89..89..89..95..92..95..80..92..92..95..98..98..83..98..95..100
100
95..100
Aspect raster map <aspect> complete
Slope raster map <slope> complete
Aspect raster map <aspect> complete
86..Aspect raster map <aspect> complete
Slope raster map <slope> complete
Slope raster map <slope> complete
98..98..100
100
89..Aspect raster map <aspect> complete
Slope raster map <slope> complete
Aspect raster map <aspect> complete
Slope raster map <slope> complete
92..95..98..100
Aspect raster map <aspect> complete
Slope raster map <slope> complete
.F.....
======================================================================
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 2.084s
FAILED (failures=1)