❌ Test failed
Test | test_doctests |
Testsuite | ./lib/python/temporal |
Test file | ./lib/python/temporal/testsuite/test_doctests.py |
Status | FAILED |
Return code | 1 |
Number of tests | 100 |
Successful tests | 96 |
Failed tests | 4 |
Percent successful | 96% |
Test duration | 0:00:20.548638 |
/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:14: 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_test_doctests/tgis/sqlite.db But database file does not exist. Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__lib_python_temporal_test_doctests/tgis/sqlite.db ........ERROR: Ohh no no no! WARNING: Needed to restart the messenger server ERROR: Ohh no no no! ....etc/python/grass/temporal/datetime_math.py:879: DeprecationWarning: classic int division if tz.seconds > 86400 / 2: etc/python/grass/temporal/datetime_math.py:882: DeprecationWarning: classic int division tz = tz.seconds/60 etc/python/grass/temporal/datetime_math.py:880: DeprecationWarning: classic int division tz = (tz.seconds - 86400) / 60 ...WARNING: Needed to restart the messenger server ..........FF...F................................................./usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, 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: Fatal Error in C library server WARNING:root:Needed to restart the libgis server, caller: Server check thread ERROR: Fatal Error in C library server WARNING:root:Needed to restart the libgis server, caller: Server check thread F ====================================================================== FAIL: Raster3DDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.Raster3DDataset ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for grass.temporal.space_time_datasets.Raster3DDataset File "etc/python/grass/temporal/space_time_datasets.py", line 366, in Raster3DDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 454, in grass.temporal.space_time_datasets.Raster3DDataset Failed example: r3map.get_name() Expected: 'str3ds_map_test_case' Got: u'str3ds_map_test_case' ====================================================================== FAIL: RasterDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.RasterDataset ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for grass.temporal.space_time_datasets.RasterDataset File "etc/python/grass/temporal/space_time_datasets.py", line 34, in RasterDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 121, in grass.temporal.space_time_datasets.RasterDataset Failed example: rmap.get_name() Expected: 'strds_map_test_case' Got: u'strds_map_test_case' ====================================================================== FAIL: VectorDataset (grass.temporal.space_time_datasets) Doctest: grass.temporal.space_time_datasets.VectorDataset ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for grass.temporal.space_time_datasets.VectorDataset File "etc/python/grass/temporal/space_time_datasets.py", line 716, in VectorDataset ---------------------------------------------------------------------- File "etc/python/grass/temporal/space_time_datasets.py", line 799, in grass.temporal.space_time_datasets.VectorDataset Failed example: vmap.get_name() Expected: 'stvds_map_test_case' Got: u'stvds_map_test_case' ====================================================================== FAIL: CLibrariesInterface (grass.temporal.c_libraries_interface) Doctest: grass.temporal.c_libraries_interface.CLibrariesInterface ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2226, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for grass.temporal.c_libraries_interface.CLibrariesInterface File "etc/python/grass/temporal/c_libraries_interface.py", line 967, in CLibrariesInterface ---------------------------------------------------------------------- File "etc/python/grass/temporal/c_libraries_interface.py", line 1020, in grass.temporal.c_libraries_interface.CLibrariesInterface Failed example: info # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE Expected: {u'tbres': 1.0, ... 'keyword': 'generated by r.mapcalc', u'bottom': 0.0, 'end_time': None, 'title': 'test', u'south': 0.0} Got: {u'tbres': 1.0, 'creator': u'vpetras', u'cols': 12, 'mtype': 'CELL', 'src1': u'', 'full_name': 'test', u'rows': 8, u'zone': 32, u'min': 1, u'west': 0.0, u'top': 1.0, u'proj': 1, u'east': 120.0, u'nsres': 10.0, u'north': 80.0, u'max': 1, 'start_time': datetime.datetime(1995, 3, 12, 10, 34, 40), u'ewres': 10.0, 'date': datetime.datetime(2019, 2, 26, 4, 6, 11), u'mapset': u'__lib_python_temporal_test_doctests', 'src2': u'', u'name': 'test', 'keyword': u'generated by r.mapcalc', u'bottom': 0.0, 'end_time': None, 'title': u'test', u'south': 0.0} ---------------------------------------------------------------------- File "etc/python/grass/temporal/c_libraries_interface.py", line 1112, in grass.temporal.c_libraries_interface.CLibrariesInterface Failed example: ciface.get_driver_name() Expected: 'sqlite' Got: u'sqlite' ---------------------------------------------------------------------- File "etc/python/grass/temporal/c_libraries_interface.py", line 1114, in grass.temporal.c_libraries_interface.CLibrariesInterface Failed example: ciface.get_database_name().split("/")[-1] Expected: 'sqlite.db' Got: u'sqlite.db' ---------------------------------------------------------------------- Ran 100 tests in 19.351s FAILED (failures=4)