unittests_temporal_raster_conditionals

./lib/python/temporal – unittests_temporal_raster_conditionals

Test failed

Testunittests_temporal_raster_conditionals
Testsuite./lib/python/temporal
Test file./lib/python/temporal/testsuite/unittests_temporal_raster_conditionals.py
StatusFAILED
Return code1
Number of tests26
Successful tests23
Failed tests3
Percent successful88%
Test duration0:01:25.256824

Supplementary files

Standard error output (stderr)

... (lines omitted)
  File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 975, in parseopt_notrack
    p.callable(pslice)
  File "etc/python/grass/temporal/temporal_raster_algebra.py", line 101, in p_statement_assign
    TemporalRasterBaseAlgebraParser.p_statement_assign(self, t)
  File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 631, in p_statement_assign
    self.remove_maps()
  File "etc/python/grass/temporal/temporal_algebra.py", line 1064, in remove_maps
    self._remove_maps(map_names[key],  key)
  File "etc/python/grass/temporal/temporal_algebra.py", line 1080, in _remove_maps
    m.inputs["name"].value = stringlist
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'r_2,r_3'

======================================================================
ERROR: test_spatiotemporal_conditional_numeric_4 (__main__.TestTemporalRasterAlgebraConditionals)
Testing the spatial conditionals with numeric conclusions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/temporal/testsuite/unittests_temporal_raster_conditionals.py", line 484, in test_spatiotemporal_conditional_numeric_4
    tra.parse(expression='R = if(A > 2 || start_date(A) > "2001-01-01", null())', basename="r", overwrite=True)
  File "etc/python/grass/temporal/temporal_raster_algebra.py", line 92, in parse
    self.parser.parse(expression)
  File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 269, in parse
    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 975, in parseopt_notrack
    p.callable(pslice)
  File "etc/python/grass/temporal/temporal_raster_algebra.py", line 101, in p_statement_assign
    TemporalRasterBaseAlgebraParser.p_statement_assign(self, t)
  File "etc/python/grass/temporal/temporal_raster_base_algebra.py", line 631, in p_statement_assign
    self.remove_maps()
  File "etc/python/grass/temporal/temporal_algebra.py", line 1064, in remove_maps
    self._remove_maps(map_names[key],  key)
  File "etc/python/grass/temporal/temporal_algebra.py", line 1080, in _remove_maps
    m.inputs["name"].value = stringlist
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'r_1,r_2,r_3'

----------------------------------------------------------------------
Ran 26 tests in 83.963s
FAILED (errors=3)