r_watershed_test

./raster/r.watershed – r_watershed_test

Test failed

Testr_watershed_test
Testsuite./raster/r.watershed
Test file./raster/r.watershed/testsuite/r_watershed_test.py
StatusFAILED
Return code1
Number of tests6
Successful tests4
Failed tests2
Percent successful67%
Test duration0:11:54.703747
Tested modulesr.watershed

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
...FF.
======================================================================
FAIL: test_fourFlag (__main__.TestWatershed)
Test the -4 flag and the stream and slope lengths
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.watershed/testsuite/r_watershed_test.py", line 103, in test_fourFlag
    self.assertRastersNoDifference(self.stream_2, self.stream, 100)
  File "etc/python/grass/gunittest/case.py", line 768, in assertRastersNoDifference
    reference=statistics, msg=msg)
  File "etc/python/grass/gunittest/case.py", line 253, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: r.info map=tmp_bb45c4b1872f4c83ae533c597a1a8937 -r difference:
mismatch values (key, reference, actual): [('max', 100, 2378), ('min', -100, -2660)]
command: r.info map=tmp_bb45c4b1872f4c83ae533c597a1a8937 -r {'map': 'tmp_bb45c4b1872f4c83ae533c597a1a8937', 'flags': 'r'}

======================================================================
FAIL: test_thresholdsize (__main__.TestWatershed)
Test the expected range of basin output values
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.watershed/testsuite/r_watershed_test.py", line 126, in test_thresholdsize
    self.assertRasterMinMax(self.basin, 2, 12)
  File "etc/python/grass/gunittest/case.py", line 474, in assertRasterMinMax
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: The actual maximum (874) is greater than the reference one (12) for raster map test_basin (with minimum 2)

----------------------------------------------------------------------
Ran 6 tests in 713.969s
FAILED (failures=2)