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.192092

Supplementary files

Standard error output (stderr)

/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..5..8..2..2..8..5..2..2..8..8..11..2..8..5..11..11..14..11..5..5..11..8..5..14..14..14..17..17..11..17..8..8..17..20..8..14..20..14..20..20..23..23..11..11..17..11..23..26..23..17..26..29..20..26..14..26..29..32..14..20..23..29..35..29..32..17..17..38..32..17..26..32..35..23..41..20..35..29..35..44..20..38..20..32..38..38..47..26..23..41..35..23..41..23..41..50..38..44..26..44..29..41..44..53..26..47..26..44..47..47..29..56..47..50..32..50..29..50..50..29..59..53..53..32..53..53..35..62..32..56..56..32..56..59..56..35..65..59..62..38..59..35..35..59..68..65..62..38..62..62..68..71..38..41..65..38..71..65..65..41..74..74..68..68..41..68..44..41..77..77..71..44..71..80..71..44..80..74..83..44..47..74..74..47..86..83..77..77..47..89..77..47..50..50..86..80..92..80..80..95..50..83..89..50..83..53..83..53..98..100
86..92..86..86..53..53..56..Aspect raster map <aspect> complete
89..56..95..89..Slope raster map <slope> complete
89..92..98..56..92..59..56..92..59..100
95..95..95..59..62..59..98..98..Aspect raster map <aspect> complete
62..98..100
Slope raster map <slope> complete
100
65..100
62..62..Aspect raster map <aspect> complete
Slope raster map <slope> complete
65..Aspect raster map <aspect> complete
Aspect raster map <aspect> complete
Slope raster map <slope> complete
65..65..Slope raster map <slope> complete
71..68..68..68..74..71..71..71..77..74..74..74..80..77..77..77..83..80..80..80..86..83..83..83..89..86..86..86..92..89..89..89..95..92..92..92..98..95..95..100
95..98..98..Aspect raster map <aspect> complete
98..Slope raster map <slope> complete
100
100
100
Aspect raster map <aspect> complete
Aspect raster map <aspect> complete
Slope raster map <slope> complete
Aspect raster map <aspect> complete
Slope raster map <slope> 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 1.176s
FAILED (failures=1)