test_temporal_raster_algebra

./lib/python/temporal – test_temporal_raster_algebra

Test failed

Test filetest_temporal_raster_algebra
Testsuite./lib/python/temporal
StatusFAILED
Return code1
Number of tests22
Successful tests20
Failed tests2
Percent successful91%
Test duration0:00:39.258917

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:803: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
etc/python/grass/temporal/abstract_dataset.py:561: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyStartTime(object):
etc/python/grass/temporal/abstract_dataset.py:610: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyEndTime(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:15: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class weekday(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:31: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzutc(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:54: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzoffset(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:83: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzlocal(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:152: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class _ttinfo(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:191: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzfile(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:475: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzrange(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
Default TGIS driver / database set to:
driver: sqlite
database:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_temporal_raster_algebra/tgis/sqlite.db
etc/python/grass/temporal/core.py:505: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator
  if grassenv.has_key("TGIS_DISABLE_MAPSET_CHECK"):
etc/python/grass/temporal/core.py:510: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator
  if grassenv.has_key("TGIS_DISABLE_TIMESTAMP_WRITE"):
Creating temporal database:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_temporal_raster_algebra/tgis/sqlite.db
Gathering map information...
   0% 100%
Registering maps in the temporal database...
Registering maps in the space time raster dataset...
   0%Updating space time raster dataset...
 100%
Gathering map information...
   0% 100%
Registering maps in the temporal database...
Registering maps in the space time raster dataset...
   0%Updating space time raster dataset...
 100%
Gathering map information...
   0% 100%
Registering maps in the space time raster dataset...
   0%Updating space time raster dataset...
 100%
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
/usr/lib/python2.7/dist-packages/ply/lex.py:716: DeprecationWarning: the cmp argument is not supported in 3.x
  f.sort(lambda x,y: cmp(func_code(x[1]).co_firstlineno,func_code(y[1]).co_firstlineno))
/usr/lib/python2.7/dist-packages/ply/lex.py:724: DeprecationWarning: the cmp argument is not supported in 3.x
  s.sort(lambda x,y: (len(x[1]) < len(y[1])) - (len(x[1]) > len(y[1])))
Generating LALR tables
Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
Generating LALR tables
.Generating LALR tables
.Generating LALR tables
EGenerating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
.Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
FGenerating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
Generating LALR tables
.Generating LALR tables
.Generating LALR tables
.
======================================================================
ERROR: test_simple_arith_hash_1 (__main__.TestRegisterFunctions)
Simple arithmetic test including the hash operator
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/temporal/testsuite/test_temporal_raster_algebra.py", line 77, in test_simple_arith_hash_1
    tra.parse(expression='D = A + A{equal,=#}A', basename="d", overwrite=True)
  File "etc/python/grass/temporal/temporal_raster_algebra.py", line 77, 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 925, in parseopt_notrack
    lookahead = get_token()     # Get the next token
  File "/usr/lib/python2.7/dist-packages/ply/lex.py", line 391, in token
    newtok = self.lexerrorf(tok)
  File "etc/python/grass/temporal/temporal_algebra.py", line 590, in t_error
    (t.lineno, t.value))
SyntaxError: syntax error on line 1 near '{equal,=#}A'

======================================================================
FAIL: test_temporal_conditional_time_dimension_bug (__main__.TestRegisterFunctions)
Testing the conditional time dimension bug, that uses the time
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/temporal/testsuite/test_temporal_raster_algebra.py", line 71, in test_temporal_conditional_time_dimension_bug
    self.assertEqual( D.check_temporal_topology(),  True)
AssertionError: False != True

----------------------------------------------------------------------
Ran 22 tests in 38.007s
FAILED (failures=1, errors=1)