test_rsun

./raster/r.sun – test_rsun

Test failed

Testtest_rsun
Testsuite./raster/r.sun
Test file./raster/r.sun/testsuite/test_rsun.py
StatusFAILED
Return code1
Number of tests4
Successful tests0
Failed tests4
Percent successful0%
Test duration0:00:02.729625
Tested modulesr.sun

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,
FEFE
======================================================================
ERROR: test_run_outputs (__main__.TestRSunMode1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.sun/testsuite/test_rsun.py", line 108, in test_run_outputs
    self.assertRasterFitsUnivar(raster=self.beam_rad, reference=values, precision=1e-8)
  File "etc/python/grass/gunittest/case.py", line 278, in assertRasterFitsUnivar
    precision=precision)
  File "etc/python/grass/gunittest/case.py", line 227, in assertModuleKeyValue
    self.runModule(module, expecting_stdout=True)
  File "etc/python/grass/gunittest/case.py", line 1114, in runModule
    " output and got " + got + errors)
RuntimeError: Module call r.univar(map=['beam_rad'], percentile=[90.0], separator='=', flags=u'g') ended successfully but we were expecting output and got nothing. There were no error messages.

======================================================================
ERROR: test_run_outputs (__main__.TestRSunMode2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.sun/testsuite/test_rsun.py", line 53, in test_run_outputs
    self.assertRasterFitsUnivar(raster=self.beam_rad, reference=values, precision=1e-8)
  File "etc/python/grass/gunittest/case.py", line 278, in assertRasterFitsUnivar
    precision=precision)
  File "etc/python/grass/gunittest/case.py", line 227, in assertModuleKeyValue
    self.runModule(module, expecting_stdout=True)
  File "etc/python/grass/gunittest/case.py", line 1114, in runModule
    " output and got " + got + errors)
RuntimeError: Module call r.univar(map=['beam_rad'], percentile=[90.0], separator='=', flags=u'g') ended successfully but we were expecting output and got nothing. There were no error messages.

======================================================================
FAIL: test_more_threads (__main__.TestRSunMode1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.sun/testsuite/test_rsun.py", line 96, in test_more_threads
    self.assertRastersNoDifference(self.glob_rad, self.glob_rad_threads, precision=1e-8)
  File "etc/python/grass/gunittest/case.py", line 771, in assertRastersNoDifference
    reference=statistics, msg=msg)
  File "etc/python/grass/gunittest/case.py", line 254, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: r.info map=tmp_1c56e114ceee4ee6946c7577a328ccd0 -r difference:
mismatch values (key, reference, actual): [('max', 1e-08, u'NULL'), ('min', -1e-08, u'NULL')]
command: r.info map=tmp_1c56e114ceee4ee6946c7577a328ccd0 -r {'map': 'tmp_1c56e114ceee4ee6946c7577a328ccd0', 'flags': 'r'}

======================================================================
FAIL: test_more_threads (__main__.TestRSunMode2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "raster/r.sun/testsuite/test_rsun.py", line 41, in test_more_threads
    self.assertRastersNoDifference(self.glob_rad, self.glob_rad_threads, precision=1e-8)
  File "etc/python/grass/gunittest/case.py", line 771, in assertRastersNoDifference
    reference=statistics, msg=msg)
  File "etc/python/grass/gunittest/case.py", line 254, in assertModuleKeyValue
    self.fail(self._formatMessage(msg, stdMsg))
AssertionError: r.info map=tmp_e4f14f1dbcfc48bc90f749353747c304 -r difference:
mismatch values (key, reference, actual): [('max', 1e-08, u'NULL'), ('min', -1e-08, u'NULL')]
command: r.info map=tmp_e4f14f1dbcfc48bc90f749353747c304 -r {'map': 'tmp_e4f14f1dbcfc48bc90f749353747c304', 'flags': 'r'}

----------------------------------------------------------------------
Ran 4 tests in 2.124s
FAILED (failures=2, errors=2)