test_rinpoly

./raster/r.in.poly – test_rinpoly

Test failed

Testtest_rinpoly
Testsuite./raster/r.in.poly
Test file./raster/r.in.poly/testsuite/test_rinpoly.py
StatusFAILED
Return code1
Number of tests7
Successful tests4
Failed tests3
Percent successful57%
Test duration0:00:34.211648
Tested modulesr.in.poly

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,
FFF....
======================================================================
FAIL: testLabels (__main__.TestRInPoly)
Test type of resulting map
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.in.poly/testsuite/test_rinpoly.py", line 108, in testLabels
    second=category, msg="Labels do not match")
AssertionError: Labels do not match 
'-8\t\n3\tlabel2\n10.01\tlabel1' != '-8\t\n3\tlabel2\n10.01'
  -8	
  3	label2
- 10.01	label1+ 10.01

======================================================================
FAIL: testTypeCell (__main__.TestRInPoly)
Test type of resulting map
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.in.poly/testsuite/test_rinpoly.py", line 56, in testTypeCell
    self.assertRasterFitsInfo(raster=self.rinpoly, reference=minmax)
  File "etc/python/grass/gunittest/case.py", line 297, in assertRasterFitsInfo
    precision=precision)
  File "etc/python/grass/gunittest/case.py", line 252, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: r.info map=test_rinpoly -g -r -e difference:
mismatch values (key, reference, actual): [('max', 10, 'NULL'), ('min', -8, 'NULL')]
command: r.info map=test_rinpoly -g -r -e {'map': 'test_rinpoly', 'flags': 'gre'}

======================================================================
FAIL: testTypeCellNull (__main__.TestRInPoly)
Test type of resulting map
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.in.poly/testsuite/test_rinpoly.py", line 81, in testTypeCellNull
    self.assertRasterFitsInfo(raster=self.rinpoly, reference=minmax, precision=1e-8)
  File "etc/python/grass/gunittest/case.py", line 297, in assertRasterFitsInfo
    precision=precision)
  File "etc/python/grass/gunittest/case.py", line 252, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: r.info map=test_rinpoly -g -r -e difference:
mismatch values (key, reference, actual): [('max', 10, 'NULL'), ('min', 3, 'NULL')]
command: r.info map=test_rinpoly -g -r -e {'map': 'test_rinpoly', 'flags': 'gre'}

----------------------------------------------------------------------
Ran 7 tests in 33.345s
FAILED (failures=3)