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:10:07.268558
Tested modulesr.watershed

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/xml/etree/ElementTree.py:1627: 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_a2af2f0783764e3ea00e0a8108976d72 -r difference:
mismatch values (key, reference, actual): [('max', 100, 2378), ('min', -100, -2660)]
command: r.info map=tmp_a2af2f0783764e3ea00e0a8108976d72 -r {'map': 'tmp_a2af2f0783764e3ea00e0a8108976d72', '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 606.441s
FAILED (failures=2)