unittests_temporal_raster_conditionals_complement_else

./lib/python/temporal – unittests_temporal_raster_conditionals_complement_else

Test failed

Testunittests_temporal_raster_conditionals_complement_else
Testsuite./lib/python/temporal
Test file./lib/python/temporal/testsuite/unittests_temporal_raster_conditionals_complement_else.py
StatusFAILED
Return code1
Number of tests2
Successful tests0
Failed tests2
Percent successful0%
Test duration0:00:07.461651

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: 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:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from .mtrand import *
etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/__init__.py:9: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from mxDateTime import *
/usr/lib/python2.7/dist-packages/psycopg2/__init__.py:50: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
etc/python/grass/temporal/abstract_dataset.py:569: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyStartTime(object):
etc/python/grass/temporal/abstract_dataset.py:619: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyEndTime(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:10: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class weekday(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:41: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class relativedelta(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:48: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzutc(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:73: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzoffset(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:104: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzlocal(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:175: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class _ttinfo(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:215: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzfile(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:507: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzrange(datetime.tzinfo):
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_unittests_temporal_raster_conditionals_complement_else/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_unittests_temporal_raster_conditionals_complement_else/tgis/sqlite.db
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
Generating LALR tables
WARNING: 7 shift/reduce conflicts
FGenerating LALR tables
WARNING: 7 shift/reduce conflicts
F
======================================================================
FAIL: test_temporal_conditional_complement (__main__.TestTemporalRasterAlgebraConditionalComplements)
Test the conditional expression that evaluate if then else statements
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/temporal/testsuite/unittests_temporal_raster_conditionals_complement_else.py", line 80, in test_temporal_conditional_complement
    self.assertEqual(R.metadata.get_number_of_maps(), 4)
AssertionError: 2 != 4

======================================================================
FAIL: test_temporal_conditional_complement_right_side_timestamps (__main__.TestTemporalRasterAlgebraConditionalComplements)
Test the conditional expression that evaluate if then else statements
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/temporal/testsuite/unittests_temporal_raster_conditionals_complement_else.py", line 116, in test_temporal_conditional_complement_right_side_timestamps
    self.assertEqual(R.metadata.get_number_of_maps(), 6)
AssertionError: 4 != 6

----------------------------------------------------------------------
Ran 2 tests in 6.360s
FAILED (failures=2)